summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-09-15 04:31:54 +0200
committerLennart Poettering <lennart@poettering.net>2009-09-15 04:31:54 +0200
commit12f211105e843d8b10f7d2a85d0ef451b7becd9a (patch)
treebf8de88b17fe8613c5de23911c70f8378c84d3dd /src
parent180ef1eebdfbdf0220af1fb5e4bf43e348207cde (diff)
gccmacro: enable weakrefs only on ELF
Diffstat (limited to 'src')
-rw-r--r--src/pulse/gccmacro.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pulse/gccmacro.h b/src/pulse/gccmacro.h
index e85ecb661..57e805095 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