Avoid using defined() in a macro body
Newer GCC points out that this is undefined behavior.
Change-Id: I625aae1e24ff9dab96658085373a8942949d4c4e
diff --git a/aos/linux_code/ipc_lib/aos_sync.cc b/aos/linux_code/ipc_lib/aos_sync.cc
index 3c1debb..d0baaa0 100644
--- a/aos/linux_code/ipc_lib/aos_sync.cc
+++ b/aos/linux_code/ipc_lib/aos_sync.cc
@@ -134,7 +134,11 @@
// actually make the syscall.
// The actual macro that we key off of to use the inline versions or not.
-#define ARM_EABI_INLINE_SYSCALL defined(__ARM_EABI__)
+#if defined(__ARM_EABI__)
+#define ARM_EABI_INLINE_SYSCALL 1
+#else
+#define ARM_EABI_INLINE_SYSCALL 0
+#endif
// Used for FUTEX_WAIT, FUTEX_LOCK_PI, and FUTEX_TRYLOCK_PI.
inline int sys_futex_wait(int op, aos_futex *addr1, int val1,