mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01:00
Fixed warnings building with gcc 2 and gcc 4 on Haiku
This commit is contained in:
parent
c2a29aede9
commit
0ca506611c
@ -35,13 +35,7 @@
|
|||||||
|
|
||||||
/* Some compilers use a special export keyword */
|
/* Some compilers use a special export keyword */
|
||||||
#ifndef DECLSPEC
|
#ifndef DECLSPEC
|
||||||
# if defined(__BEOS__) || defined(__HAIKU__)
|
# if defined(__WIN32__)
|
||||||
# if defined(__GNUC__)
|
|
||||||
# define DECLSPEC __declspec(dllexport)
|
|
||||||
# else
|
|
||||||
# define DECLSPEC __declspec(export)
|
|
||||||
# endif
|
|
||||||
# elif defined(__WIN32__)
|
|
||||||
# ifdef __BORLANDC__
|
# ifdef __BORLANDC__
|
||||||
# ifdef BUILD_SDL
|
# ifdef BUILD_SDL
|
||||||
# define DECLSPEC
|
# define DECLSPEC
|
||||||
@ -54,6 +48,8 @@
|
|||||||
# else
|
# else
|
||||||
# if defined(__GNUC__) && __GNUC__ >= 4
|
# if defined(__GNUC__) && __GNUC__ >= 4
|
||||||
# define DECLSPEC __attribute__ ((visibility("default")))
|
# define DECLSPEC __attribute__ ((visibility("default")))
|
||||||
|
# elif defined(__GNUC__) && __GNUC__ >= 2
|
||||||
|
# define DECLSPEC __declspec(dllexport)
|
||||||
# else
|
# else
|
||||||
# define DECLSPEC
|
# define DECLSPEC
|
||||||
# endif
|
# endif
|
||||||
|
Loading…
Reference in New Issue
Block a user