| | |
| | | /* |
| | | Simple DirectMedia Layer |
| | | Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org> |
| | | Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org> |
| | | |
| | | This software is provided 'as-is', without any express or implied |
| | | warranty. In no event will the authors be held liable for any damages |
| | |
| | | |
| | | /* Some compilers use a special export keyword */ |
| | | #ifndef DECLSPEC |
| | | # if defined(__WIN32__) || defined(__WINRT__) |
| | | # ifdef __BORLANDC__ |
| | | # ifdef BUILD_SDL |
| | | # define DECLSPEC |
| | | # else |
| | | # define DECLSPEC __declspec(dllimport) |
| | | # endif |
| | | # else |
| | | # if defined(__WIN32__) || defined(__WINRT__) || defined(__CYGWIN__) |
| | | # ifdef DLL_EXPORT |
| | | # define DECLSPEC __declspec(dllexport) |
| | | # else |
| | | # define DECLSPEC |
| | | # endif |
| | | # elif defined(__OS2__) |
| | | # ifdef BUILD_SDL |
| | |
| | | #ifdef _MSC_VER |
| | | #pragma warning(disable: 4103) |
| | | #endif |
| | | #ifdef __clang__ |
| | | #pragma clang diagnostic ignored "-Wpragma-pack" |
| | | #endif |
| | | #ifdef __BORLANDC__ |
| | | #pragma nopackwarning |
| | | #endif |