summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mack <zonque@gmail.com>2014-02-21 11:39:38 +0100
committerDaniel Mack <zonque@gmail.com>2014-02-21 11:39:38 +0100
commit9bd9f43fceff79796f6d2a3fb19f7a711a3f3ec5 (patch)
treec5cbc9a0439b46810f9a5cd6f0ac84ed37f6f1c3
parent6a70f3aa63a3b7a6a30448c48322ad38b719cdce (diff)
shared/architecture.h: fix preprocessor directives
Use 'if defined()', not 'ifdef defined()'. Fixes the following warning. CC src/shared/architecture.lo In file included from src/shared/architecture.c:24:0: src/shared/architecture.h:89:17: warning: extra tokens at end of #ifdef directive [enabled by default] # ifdef defined(WORDS_BIGENDIAN) ^
-rw-r--r--src/shared/architecture.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/architecture.h b/src/shared/architecture.h
index fcfc45aa77..58a8164a75 100644
--- a/src/shared/architecture.h
+++ b/src/shared/architecture.h
@@ -80,13 +80,13 @@ Architecture uname_architecture(void);
#elif defined(__alpha__)
# define native_architecture() ARCHITECTURE_ALPHA
#elif defined(__aarch64__)
-# ifdef defined(WORDS_BIGENDIAN)
+# if defined(WORDS_BIGENDIAN)
# define native_architecture() ARCHITECTURE_ARM64_BE
# else
# define native_architecture() ARCHITECTURE_ARM64
# endif
#elif defined(__arm__)
-# ifdef defined(WORDS_BIGENDIAN)
+# if defined(WORDS_BIGENDIAN)
# define native_architecture() ARCHITECTURE_ARM_BE
# else
# define native_architecture() ARCHITECTURE_ARM