diff --git a/include/SFML/Config.hpp b/include/SFML/Config.hpp index 677d4096..d9df3f6c 100644 --- a/include/SFML/Config.hpp +++ b/include/SFML/Config.hpp @@ -127,7 +127,7 @@ #if __GNUC__ >= 4 // gcc 4 has special keywords for showing/hidding symbols - #define SFML_API __attribute__ ((visibility ("default"))) + #define SFML_API __attribute__ ((__visibility__ ("default"))) #else diff --git a/src/SFML/System/Unix/Initializer.cpp b/src/SFML/System/Unix/Initializer.cpp index 0d3dbeea..018d4a36 100644 --- a/src/SFML/System/Unix/Initializer.cpp +++ b/src/SFML/System/Unix/Initializer.cpp @@ -48,7 +48,7 @@ namespace priv /// The "constructor" attribute forces the function to be called /// at library loading time. //////////////////////////////////////////////////////////// -void InitializeWorkingDirectory(void) __attribute__ ((constructor)); +void InitializeWorkingDirectory(void) __attribute__ ((__constructor__)); void InitializeWorkingDirectory(void) { char PathBuffer[4096];