mirror of
https://github.com/SFML/CSFML.git
synced 2026-10-26 21:16:13 +01:00
Remove workarounds for old compilers
This commit is contained in:
1 parent
942f23ca0b
commit
2273672415
3 files changed
+6
-23
No files matched your search
+2
-14
@@ -93,20 +93,8 @@
|
||||
|
||||
#else // Linux, FreeBSD, Mac OS X
|
||||
|
||||
#if __GNUC__ >= 4
|
||||
|
||||
// GCC 4 has special keywords for showing/hidding symbols,
|
||||
// the same keyword is used for both importing and exporting
|
||||
#define CSFML_API_EXPORT extern "C" __attribute__ ((__visibility__ ("default")))
|
||||
#define CSFML_API_IMPORT CSFML_EXTERN_C __attribute__ ((__visibility__ ("default")))
|
||||
|
||||
#else
|
||||
|
||||
// GCC < 4 has no mechanism to explicitely hide symbols, everything's exported
|
||||
#define CSFML_API_EXPORT extern "C"
|
||||
#define CSFML_API_IMPORT CSFML_EXTERN_C
|
||||
|
||||
#endif
|
||||
#define CSFML_API_EXPORT extern "C" __attribute__ ((__visibility__ ("default")))
|
||||
#define CSFML_API_IMPORT CSFML_EXTERN_C __attribute__ ((__visibility__ ("default")))
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in new issue
Block a user