diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2010-11-02 07:51:55 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2010-11-02 07:51:55 +0000 |
commit | 2e96bbc16f528193e6aa8c5f8b7df1af41991470 (patch) | |
tree | 1cab3bffef7c35e881c1e7f0d9f36c4dbda09265 /lib/libXfont | |
parent | 20a0d8c6bbe61854c38a65557f52f933957cb42e (diff) |
Fix weak symbols declarations for gcc 2.95
Diffstat (limited to 'lib/libXfont')
-rw-r--r-- | lib/libXfont/src/stubs/stubs.h | 3 |
1 files changed, 2 insertions, 1 deletions
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 |