Renamed DECLSPEC to SDL_DECLSPEC

This commit is contained in:
Sam Lantinga
2024-05-17 16:52:36 -07:00
parent 2cf32b0e0a
commit 6f2621438a
67 changed files with 1090 additions and 1099 deletions

View File

@@ -52,18 +52,18 @@
#endif
/* Some compilers use a special export keyword */
#ifndef DECLSPEC
#ifndef SDL_DECLSPEC
# if defined(SDL_PLATFORM_WIN32) || defined(SDL_PLATFORM_WINRT) || defined(SDL_PLATFORM_CYGWIN) || defined(SDL_PLATFORM_GDK)
# ifdef DLL_EXPORT
# define DECLSPEC __declspec(dllexport)
# define SDL_DECLSPEC __declspec(dllexport)
# else
# define DECLSPEC
# define SDL_DECLSPEC
# endif
# else
# if defined(__GNUC__) && __GNUC__ >= 4
# define DECLSPEC __attribute__ ((visibility("default")))
# define SDL_DECLSPEC __attribute__ ((visibility("default")))
# else
# define DECLSPEC
# define SDL_DECLSPEC
# endif
# endif
#endif