OSDN Git Service

libc: silence warnings about undefined cpp tokens
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Sun, 20 Jun 2010 09:20:11 +0000 (11:20 +0200)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Thu, 24 Jun 2010 09:55:28 +0000 (11:55 +0200)
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
libc/sysdeps/linux/arm/sysdep.h
libc/sysdeps/linux/i386/sysdep.h
libc/sysdeps/linux/sh/sysdep.h
libc/sysdeps/linux/xtensa/sysdep.h

index b1ae2fd..42fb2d3 100644 (file)
 
 #define ret_ERRVAL PSEUDO_RET_NOERRNO
 
-#if NOT_IN_libc
+#if defined NOT_IN_libc
 # define SYSCALL_ERROR __local_syscall_error
 # ifdef RTLD_PRIVATE_ERRNO
 #  define SYSCALL_ERROR_HANDLER                                        \
index ff67e8a..73541de 100644 (file)
@@ -243,7 +243,7 @@ __x86.get_pc_thunk.reg:                                                   \
 
 # elif defined _LIBC_REENTRANT
 
-#  if USE___THREAD
+#  if defined USE___THREAD
 #   ifndef NOT_IN_libc
 #    define SYSCALL_ERROR_ERRNO __libc_errno
 #   else
index bd62342..2ef0a33 100644 (file)
 
 # elif defined _LIBC_REENTRANT
 
-#  if USE___THREAD
+#  if defined USE___THREAD
 
 #   ifndef NOT_IN_libc
 #    define SYSCALL_ERROR_ERRNO __libc_errno
index bd16b81..4c32c2c 100644 (file)
 
 #define ret_ERRVAL retw
 
-#if RTLD_PRIVATE_ERRNO
+#if defined RTLD_PRIVATE_ERRNO
 # define SYSCALL_ERROR_HANDLER                                               \
 0:     movi    a4, rtld_errno;                                               \
        neg     a2, a2;                                                       \
 
 #elif defined _LIBC_REENTRANT
 
-# if USE___THREAD
+# if defined USE___THREAD
 #  ifndef NOT_IN_libc
 #   define SYSCALL_ERROR_ERRNO __libc_errno
 #  else