[uClibc-cvs] uClibc/ldso/include ldso.h,1.7,1.8

Erik Andersen andersen at uclibc.org
Tue Feb 17 11:25:05 UTC 2004


Update of /var/cvs/uClibc/ldso/include
In directory nail:/tmp/cvs-serv26716/include

Modified Files:
	ldso.h 
Log Message:
Fixup support for gcc 2.95


Index: ldso.h
===================================================================
RCS file: /var/cvs/uClibc/ldso/include/ldso.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- ldso.h	17 Feb 2004 06:37:02 -0000	1.7
+++ ldso.h	17 Feb 2004 11:25:03 -0000	1.8
@@ -2,6 +2,21 @@
 #define _LDSO_H_
 
 #include <features.h>
+
+/* Prepare for the case that `__builtin_expect' is not available.  */
+#if __GNUC__ == 2 && __GNUC_MINOR__ < 96
+#define __builtin_expect(x, expected_value) (x)
+#endif
+#ifndef likely
+# define likely(x)	__builtin_expect((!!(x)),1)
+#endif
+#ifndef unlikely
+# define unlikely(x)	__builtin_expect((!!(x)),0)
+#endif
+#ifndef __LINUX_COMPILER_H
+#define __LINUX_COMPILER_H
+#endif
+
 /* Pull in compiler and arch stuff */
 #include <stdlib.h>
 #include <stdarg.h>
@@ -20,21 +35,6 @@
 #include <dl-elf.h>
 #include <dl-hash.h>
 
-/* Prepare for the case that `__builtin_expect' is not available.  */
-#if __GNUC__ == 2 && __GNUC_MINOR__ < 96
-#define __builtin_expect(x, expected_value) (x)
-#endif
-#ifndef likely
-# define likely(x)	__builtin_expect((!!(x)),1)
-#endif
-#ifndef unlikely
-# define unlikely(x)	__builtin_expect((!!(x)),0)
-#endif
-#ifndef __LINUX_COMPILER_H
-#define __LINUX_COMPILER_H
-#endif
-
-
 /* Global variables used within the shared library loader */
 extern char *_dl_library_path;         /* Where we look for libraries */
 extern char *_dl_preload;              /* Things to be loaded before the libs */




More information about the uClibc-cvs mailing list