PA_WARN_REFERENCE works only for ELF targets

This commit is contained in:
Lennart Poettering 2008-10-01 14:49:00 +02:00
parent 3853070a21
commit ea15ca9862

View file

@ -208,7 +208,7 @@ typedef int pa_bool_t;
#define PA_PATH_SEP_CHAR '/' #define PA_PATH_SEP_CHAR '/'
#endif #endif
#ifdef __GNUC__ #if defined(__GNUC__) && defined(__ELF__)
#define PA_WARN_REFERENCE(sym, msg) \ #define PA_WARN_REFERENCE(sym, msg) \
__asm__(".section .gnu.warning." #sym); \ __asm__(".section .gnu.warning." #sym); \