diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-03-15 06:41:38 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-03-15 06:41:38 +0000 |
commit | 8dbb3b0aac021c3ff617c78bd4d1b42ab57d0c01 (patch) | |
tree | 4dba6431c0fdd99770ac45dbacd1c031e41d824a | |
parent | 8f0ab729be75ccb1982fe9031ab299d1ef8bc07f (diff) |
Hide libc specific junk inside a #ifdef _LIBC to avoid
namespace pollution, noted by Miles.
-Erik
-rw-r--r-- | include/features.h | 13 |
1 files changed, 7 insertions, 6 deletions
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 */ |