Skip to content

Commit 6a839ee

Browse files
committed
platform.h: explicitly undefine all 'TARGET_*' macros before detection
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
1 parent 626f000 commit 6a839ee

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

platform.h

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,32 @@
2626
#undef COMPILER_DETECTED
2727
#undef OS_DETECTED
2828

29+
#undef TARGET_CPU_ALPHA
30+
#undef TARGET_CPU_ARM
31+
#undef TARGET_CPU_IA64
32+
#undef TARGET_CPU_PPC
33+
#undef TARGET_CPU_SPARC
34+
#undef TARGET_CPU_X64
35+
#undef TARGET_CPU_X86
36+
#undef TARGET_CPU_X86_64
37+
38+
#undef TARGET_COMPILER_BORLAND
39+
#undef TARGET_COMPILER_CYGWIN
40+
#undef TARGET_COMPILER_GCC
41+
#undef TARGET_COMPILER_ICC
42+
#undef TARGET_COMPILER_MINGW
43+
#undef TARGET_COMPILER_MSVC
44+
45+
#undef TARGET_OS_FREEBSD
46+
#undef TARGET_OS_HAIKU
47+
#undef TARGET_OS_LINUX
48+
#undef TARGET_OS_MACOSX
49+
#undef TARGET_OS_NDSFIRMWARE
50+
#undef TARGET_OS_NETBSD
51+
#undef TARGET_OS_OPENBSD
52+
#undef TARGET_OS_SOLARIS
53+
#undef TARGET_OS_WINDOWS
54+
2955
/* ------------------- *
3056
* PROCESSOR DETECTION *
3157
* ------------------- */

0 commit comments

Comments
 (0)