From c56735672c2f771e0c9d87480c85b72aa99aceec Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Tue, 17 Feb 2004 11:25:03 +0000 Subject: Fixup support for gcc 2.95 --- ldso/include/ldso.h | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'ldso/include/ldso.h') diff --git a/ldso/include/ldso.h b/ldso/include/ldso.h index c87bac440..6d3df05dc 100644 --- a/ldso/include/ldso.h +++ b/ldso/include/ldso.h @@ -2,6 +2,21 @@ #define _LDSO_H_ #include + +/* 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 #include @@ -20,21 +35,6 @@ #include #include -/* 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 */ -- cgit v1.2.3