[systemd-commits] src/shared

Daniel Mack zonque at kemper.freedesktop.org
Fri Feb 21 02:40:57 PST 2014


 src/shared/architecture.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 9bd9f43fceff79796f6d2a3fb19f7a711a3f3ec5
Author: Daniel Mack <zonque at gmail.com>
Date:   Fri Feb 21 11:39:38 2014 +0100

    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)
                     ^

diff --git a/src/shared/architecture.h b/src/shared/architecture.h
index fcfc45a..58a8164 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



More information about the systemd-commits mailing list