chiark / gitweb /
shared/architecture.h: fix preprocessor directives
authorDaniel Mack <zonque@gmail.com>
Fri, 21 Feb 2014 10:39:38 +0000 (11:39 +0100)
committerDaniel Mack <zonque@gmail.com>
Fri, 21 Feb 2014 10:39:38 +0000 (11:39 +0100)
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)
                 ^

src/shared/architecture.h

index fcfc45a..58a8164 100644 (file)
@@ -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