From 1ba103c3cad2329db3a31f88d7798b913affc570 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 13 Oct 2004 07:38:00 +0000 Subject: [PATCH] Use attributes instead of pragmas for weak symbols on gcc 2.95 as well. Using pragmas may result in the symbols being undefined with big -O. (FreeBSD ports/69708, Masakazu HIGAKI ) --- src/UIThrStubs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/UIThrStubs.c b/src/UIThrStubs.c index 3da0549e..27df98fd 100644 --- a/src/UIThrStubs.c +++ b/src/UIThrStubs.c @@ -99,7 +99,7 @@ typedef pthread_t xthread_t; #else #include typedef pthread_t xthread_t; -#if __GNUC__ >= 3 +#if __GNUC__ >= 3 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95) xthread_t pthread_self() __attribute__ ((weak, alias ("_Xthr_self_stub_"))); int pthread_mutex_init() __attribute__ ((weak, alias ("_Xthr_zero_stub_"))); int pthread_mutex_destroy() __attribute__ ((weak, alias ("_Xthr_zero_stub_")));