mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 04:41:05 +08:00
Added extra underscores to gcc 4 specific attributes (visibility, constructor)
This commit is contained in:
parent
01254d4122
commit
46b2c096c4
@ -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
|
||||
|
||||
|
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user