From 2e96bbc16f528193e6aa8c5f8b7df1af41991470 Mon Sep 17 00:00:00 2001 From: Matthieu Herrb Date: Tue, 2 Nov 2010 07:51:55 +0000 Subject: Fix weak symbols declarations for gcc 2.95 --- lib/libXfont/src/stubs/stubs.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/libXfont/src') diff --git a/lib/libXfont/src/stubs/stubs.h b/lib/libXfont/src/stubs/stubs.h index 7f0eef298..883b09064 100644 --- a/lib/libXfont/src/stubs/stubs.h +++ b/lib/libXfont/src/stubs/stubs.h @@ -10,7 +10,8 @@ #endif /* this probably works for Mach-O too, but probably not for PE */ -#if (defined(__APPLE__) || defined(__ELF__)) && defined(__GNUC__) && (__GNUC__ >= 3) +#if (defined(__APPLE__) || defined(__ELF__)) && \ + defined(__GNUC__) && ((__GNUC__ >= 3) || ((__GNUC__ == 2) && __GNUC_MINOR__ >= 95 )) #define weak __attribute__((weak)) #else #define weak -- cgit v1.2.3