From 8dbb3b0aac021c3ff617c78bd4d1b42ab57d0c01 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Fri, 15 Mar 2002 06:41:38 +0000 Subject: Hide libc specific junk inside a #ifdef _LIBC to avoid namespace pollution, noted by Miles. -Erik --- include/features.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'include/features.h') diff --git a/include/features.h b/include/features.h index 7af149bcc..98e575dca 100644 --- a/include/features.h +++ b/include/features.h @@ -360,7 +360,8 @@ uClibc was built without large file support enabled. #endif /* Some nice features only work properly with ELF */ -#if defined _LIBC && defined HAVE_ELF +#if defined _LIBC +#if defined HAVE_ELF /* Define ALIASNAME as a weak alias for NAME. */ # define weak_alias(name, aliasname) _weak_alias (name, aliasname) # define _weak_alias(name, aliasname) \ @@ -389,11 +390,6 @@ uClibc was built without large file support enabled. ".stabs \"" #symbol "\",1,0,0,0\n"); #endif -/* --- this is added to integrate linuxthreads */ - -#define __USE_UNIX98 1 - - #ifndef weak_function /* If we do not have the __attribute__ ((weak)) syntax, there is no way we can define functions as weak symbols. The compiler will emit a `.globl' @@ -418,5 +414,10 @@ uClibc was built without large file support enabled. #define likely(x) __builtin_expect((x),1) #define unlikely(x) __builtin_expect((x),0) +/* --- this is added to integrate linuxthreads */ +#define __USE_UNIX98 1 + +#endif /* _LIBC only stuff */ + #endif /* features.h */ -- cgit v1.2.3