Skip to content

Commit 0d45ab8

Browse files
committed
Avoid __fastcall conflicting with system definition
In file included from media_driver/agnostic/common/cm/cm_hal_hashtable.cpp:36: In file included from media_driver/agnostic/common/cm/cm_hal_hashtable.h:29: In file included from media_driver/agnostic/common/os/mos_os.h:31: In file included from media_driver/linux/common/os/media_skuwa_specific.h:32: In file included from media_driver/linux/common/os/linux_shadow_skuwa.h:31: In file included from /usr/local/include/igdgmm/GmmLib/inc/GmmLib.h:30: /usr/local/include/igdgmm/inc/portable_compiler.h:33:13: error: '__fastcall' macro redefined [-Werror,-Wmacro-redefined] #define __fastcall ^ /usr/include/sys/cdefs.h:372:9: note: previous definition is here #define __fastcall __attribute__((__fastcall__)) ^
1 parent ab15030 commit 0d45ab8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Source/inc/portable_compiler.h

+3
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ OTHER DEALINGS IN THE SOFTWARE.
3030
#endif
3131

3232
#define __noop
33+
#ifdef __fastcall
34+
#undef __fastcall
35+
#endif
3336
#define __fastcall
3437
#if defined __x86_64__
3538
#define __stdcall // deprecated for x86-64

0 commit comments

Comments
 (0)