[git commit master 1/1] libc: silence warnings about undefined cpp tokens

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Thu Jun 24 09:55:28 UTC 2010


commit: http://git.uclibc.org/uClibc/commit/?id=19a5f9f94448b44d12799f559f09776ff503d958
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
 libc/sysdeps/linux/arm/sysdep.h    |    2 +-
 libc/sysdeps/linux/i386/sysdep.h   |    2 +-
 libc/sysdeps/linux/sh/sysdep.h     |    2 +-
 libc/sysdeps/linux/xtensa/sysdep.h |    4 ++--
 4 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/libc/sysdeps/linux/arm/sysdep.h b/libc/sysdeps/linux/arm/sysdep.h
index b1ae2fd..42fb2d3 100644
--- a/libc/sysdeps/linux/arm/sysdep.h
+++ b/libc/sysdeps/linux/arm/sysdep.h
@@ -158,7 +158,7 @@
 
 #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					\
diff --git a/libc/sysdeps/linux/i386/sysdep.h b/libc/sysdeps/linux/i386/sysdep.h
index ff67e8a..73541de 100644
--- a/libc/sysdeps/linux/i386/sysdep.h
+++ b/libc/sysdeps/linux/i386/sysdep.h
@@ -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
diff --git a/libc/sysdeps/linux/sh/sysdep.h b/libc/sysdeps/linux/sh/sysdep.h
index bd62342..2ef0a33 100644
--- a/libc/sysdeps/linux/sh/sysdep.h
+++ b/libc/sysdeps/linux/sh/sysdep.h
@@ -171,7 +171,7 @@
 
 # elif defined _LIBC_REENTRANT
 
-#  if USE___THREAD
+#  if defined USE___THREAD
 
 #   ifndef NOT_IN_libc
 #    define SYSCALL_ERROR_ERRNO __libc_errno
diff --git a/libc/sysdeps/linux/xtensa/sysdep.h b/libc/sysdeps/linux/xtensa/sysdep.h
index bd16b81..4c32c2c 100644
--- a/libc/sysdeps/linux/xtensa/sysdep.h
+++ b/libc/sysdeps/linux/xtensa/sysdep.h
@@ -114,7 +114,7 @@
 
 #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;							      \
@@ -124,7 +124,7 @@
 
 #elif defined _LIBC_REENTRANT
 
-# if USE___THREAD
+# if defined USE___THREAD
 #  ifndef NOT_IN_libc
 #   define SYSCALL_ERROR_ERRNO __libc_errno
 #  else
-- 
1.7.1



More information about the uClibc-cvs mailing list