mirror of
https://github.com/SFML/SFML.git
synced 2024-12-01 15:51:04 +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
|
#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
|
||||||
|
|
||||||
|
@ -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];
|
||||||
|
Loading…
Reference in New Issue
Block a user