Enable weak symbols under OpenBSD on non-ELF platforms, too.
ok matthieu@ todd@
This commit is contained in:
parent
f1ea238aa1
commit
47b6998e0f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user