Added extra underscores to gcc 4 specific attributes (visibility, constructor)

This commit is contained in:
Laurent Gomila 2011-11-04 08:01:56 +01:00
parent 01254d4122
commit 46b2c096c4
2 changed files with 2 additions and 2 deletions

View File

@ -127,7 +127,7 @@
#if __GNUC__ >= 4 #if __GNUC__ >= 4
// gcc 4 has special keywords for showing/hidding symbols // gcc 4 has special keywords for showing/hidding symbols
#define SFML_API __attribute__ ((visibility ("default"))) #define SFML_API __attribute__ ((__visibility__ ("default")))
#else #else

View File

@ -48,7 +48,7 @@ namespace priv
/// The "constructor" attribute forces the function to be called /// The "constructor" attribute forces the function to be called
/// at library loading time. /// at library loading time.
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
void InitializeWorkingDirectory(void) __attribute__ ((constructor)); void InitializeWorkingDirectory(void) __attribute__ ((__constructor__));
void InitializeWorkingDirectory(void) void InitializeWorkingDirectory(void)
{ {
char PathBuffer[4096]; char PathBuffer[4096];