Преглед изворни кода

Hide libc specific junk inside a #ifdef _LIBC to avoid
namespace pollution, noted by Miles.
-Erik

Eric Andersen пре 22 година
родитељ
комит
8dbb3b0aac
1 измењених фајлова са 7 додато и 6 уклоњено
  1. 7 6
      include/features.h

+ 7 - 6
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  */