From 46b2c096c4aac509150fffddca2a252050df7d55 Mon Sep 17 00:00:00 2001 From: Laurent Gomila Date: Fri, 4 Nov 2011 08:01:56 +0100 Subject: [PATCH] Added extra underscores to gcc 4 specific attributes (visibility, constructor) --- include/SFML/Config.hpp | 2 +- src/SFML/System/Unix/Initializer.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/SFML/Config.hpp b/include/SFML/Config.hpp index 677d4096b..d9df3f6cb 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 0d3dbeeae..018d4a362 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];