Enable weak symbols under OpenBSD on non-ELF platforms, too.

ok matthieu@ todd@
This commit is contained in:
miod 2011-01-20 21:43:47 +00:00
parent f1ea238aa1
commit 47b6998e0f

View File

@ -10,7 +10,7 @@
#endif
/* this probably works for Mach-O too, but probably not for PE */
#if (defined(__APPLE__) || defined(__ELF__)) && \
#if (defined(__APPLE__) || defined(__ELF__) || defined(__OpenBSD__)) && \
defined(__GNUC__) && ((__GNUC__ >= 3) || ((__GNUC__ == 2) && __GNUC_MINOR__ >= 95 ))
#define weak __attribute__((weak))
#else