]> Git Repo - uclibc-ng.git/commitdiff
Avoid gratuitous conflicts when used with kernel headers
authorEric Andersen <[email protected]>
Fri, 22 Aug 2003 20:28:43 +0000 (20:28 -0000)
committerEric Andersen <[email protected]>
Fri, 22 Aug 2003 20:28:43 +0000 (20:28 -0000)
include/features.h

index 2ab3b6b15806d5829ce4e5b0f0cdcba7ff7ac1ff..b378d316171cbe9f2df46a61f3f919007cc3b009 100644 (file)
@@ -421,8 +421,12 @@ uClibc was built without large file support enabled.
 #if __GNUC__ == 2 && __GNUC_MINOR__ < 96
 #define __builtin_expect(x, expected_value) (x)
 #endif
-#define likely(x)      __builtin_expect((!!(x)),1)
-#define unlikely(x)    __builtin_expect((!!(x)),0)
+#ifndef likely
+# define likely(x)     __builtin_expect((!!(x)),1)
+#endif
+#ifndef unlikely
+# define unlikely(x)   __builtin_expect((!!(x)),0)
+#endif
 
 /* --- this is added to integrate linuxthreads */
 #define __USE_UNIX98            1
This page took 0.025431 seconds and 4 git commands to generate.