Skip to content

Commit a41c9e6

Browse files
committed
Protect the _PLATFORM_ARCH* defines.
Signed-off-by: George Bosilca <[email protected]>
1 parent 8bf82fc commit a41c9e6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

opal/include/opal/opal_portable_platform_real.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1053,9 +1053,9 @@
10531053
#elif defined(__LITTLE_ENDIAN__) || defined(WORDS_LITTLEENDIAN) || \
10541054
( __BYTE_ORDER__ > 0 && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ )
10551055
#define PLATFORM_ARCH_LITTLE_ENDIAN 1
1056-
#elif _PLATFORM_ARCH_BIG_ENDIAN
1056+
#elif defined(_PLATFORM_ARCH_BIG_ENDIAN)
10571057
#define PLATFORM_ARCH_BIG_ENDIAN 1
1058-
#elif _PLATFORM_ARCH_LITTLE_ENDIAN
1058+
#elif defined(_PLATFORM_ARCH_LITTLE_ENDIAN)
10591059
#define PLATFORM_ARCH_LITTLE_ENDIAN 1
10601060
#endif
10611061
#undef _PLATFORM_ARCH_BIG_ENDIAN
@@ -1086,9 +1086,9 @@
10861086
defined(__arch32__) || defined(__32BIT__) || \
10871087
__INTPTR_MAX__ == 2147483647
10881088
#define PLATFORM_ARCH_32 1
1089-
#elif _PLATFORM_ARCH_64
1089+
#elif defined(_PLATFORM_ARCH_64)
10901090
#define PLATFORM_ARCH_64 1
1091-
#elif _PLATFORM_ARCH_32
1091+
#elif defined(_PLATFORM_ARCH_32)
10921092
#define PLATFORM_ARCH_32 1
10931093
#endif
10941094
#undef _PLATFORM_ARCH_64

0 commit comments

Comments
 (0)