diff options
Diffstat (limited to 'src/stubs/stubs.h')
-rw-r--r-- | src/stubs/stubs.h | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/stubs/stubs.h b/src/stubs/stubs.h index c09c675..9e71806 100644 --- a/src/stubs/stubs.h +++ b/src/stubs/stubs.h @@ -10,7 +10,7 @@ #endif /* this probably works for Mach-O too, but probably not for PE */ -#if (defined(__APPLE__) || defined(__ELF__)) && defined(__GNUC__) && (__GNUC__ >= 3) +#if defined(__ELF__) && defined(__GNUC__) && (__GNUC__ >= 3) #define weak __attribute__((weak)) #else #define weak @@ -67,15 +67,6 @@ extern void (*__register_fpe_functions)(void); #define OVERRIDE_VA_SYMBOL(sym,f) #endif -/* This is really just a hack for now... __APPLE__ really should be using - * the weak symbols route above, but it's causing an as-yet unresolved issue, - * so we're instead building with flat_namespace. - */ -#ifdef __APPLE__ -#undef weak -#define weak -#endif - extern FontPtr find_old_font ( FSID id ); extern int set_font_authorizations ( char **authorizations, int *authlen, |