From: Lennart Poettering Date: Tue, 15 Sep 2009 02:31:54 +0000 (+0200) Subject: gccmacro: enable weakrefs only on ELF X-Git-Tag: v0.9.18~43 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=12f211105e843d8b10f7d2a85d0ef451b7becd9a;p=platform%2Fupstream%2Fpulseaudio.git gccmacro: enable weakrefs only on ELF --- diff --git a/src/pulse/gccmacro.h b/src/pulse/gccmacro.h index e85ecb6..57e8050 100644 --- a/src/pulse/gccmacro.h +++ b/src/pulse/gccmacro.h @@ -118,7 +118,7 @@ #endif #ifndef PA_GCC_WEAKREF -#if defined(__GNUC__) && (((__GNUC__ == 4) && (__GNUC_MINOR__ > 1)) || (__GNUC__ > 4)) +#if defined(__GNUC__) && defined(__ELF__) && (((__GNUC__ == 4) && (__GNUC_MINOR__ > 1)) || (__GNUC__ > 4)) /** Macro for usgae of GCC's weakref attribute */ #define PA_GCC_WEAKREF(x) __attribute__((weakref(#x))); #endif