[git commit] regex_old.c: remove unneeded guard

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Fri Jun 15 12:00:23 UTC 2012


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

_LIBC is undefined here, no need to specially guard with __UCLIBC__

Signed-off-by: Peter S. Mazinger <ps.m at gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
 libc/misc/regex/regex_old.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/libc/misc/regex/regex_old.c b/libc/misc/regex/regex_old.c
index bee6434..78a66cf 100644
--- a/libc/misc/regex/regex_old.c
+++ b/libc/misc/regex/regex_old.c
@@ -64,10 +64,9 @@
 #  include <wctype.h>
 # endif
 
-# if defined _LIBC || defined __UCLIBC__
+# ifdef _LIBC
 /* We have to keep the namespace clean.  */
 
-# ifndef __UCLIBC__
 #  define btowc __btowc
 
 /* We are also using some library internals.  */
@@ -76,7 +75,6 @@
 #  include <langinfo.h>
 #  include <locale/coll-lookup.h>
 # endif
-# endif
 
 /* This is for other GNU distributions with internationalized messages.  */
 # if defined HAVE_LIBINTL_H || defined _LIBC


More information about the uClibc-cvs mailing list