X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=misc%2Fbuilddeps%2Fwin64%2Fsdl%2Finclude%2FSDL2%2Fbegin_code.h;h=04e78c64d40a32dfe4040f3fa0c214dcca4a2f6d;hb=38843b816f00c0d1d1e0ce2d99f172a975eb7a3e;hp=f37ee3696ebfefc305ce13bd1d3a810a707dbef7;hpb=27137e7dcaa767683058a48f2a10552ce4c592e6;p=xonotic%2Fxonotic.git diff --git a/misc/builddeps/win64/sdl/include/SDL2/begin_code.h b/misc/builddeps/win64/sdl/include/SDL2/begin_code.h index f37ee369..04e78c64 100644 --- a/misc/builddeps/win64/sdl/include/SDL2/begin_code.h +++ b/misc/builddeps/win64/sdl/include/SDL2/begin_code.h @@ -1,6 +1,6 @@ /* Simple DirectMedia Layer - Copyright (C) 1997-2014 Sam Lantinga + Copyright (C) 1997-2016 Sam Lantinga This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages @@ -41,6 +41,14 @@ # endif #endif +#ifndef SDL_UNUSED +# ifdef __GNUC__ +# define SDL_UNUSED __attribute__((unused)) +# else +# define SDL_UNUSED +# endif +#endif + /* Some compilers use a special export keyword */ #ifndef DECLSPEC # if defined(__WIN32__) || defined(__WINRT__) @@ -56,8 +64,6 @@ # else # if defined(__GNUC__) && __GNUC__ >= 4 # define DECLSPEC __attribute__ ((visibility("default"))) -# elif defined(__GNUC__) && __GNUC__ >= 2 -# define DECLSPEC __declspec(dllexport) # else # define DECLSPEC # endif