mirror of
https://github.com/love2d/love.git
synced 2026-08-20 20:49:54 +02:00
Remove #ifdefs supporting old Visual Studio versions.
This commit is contained in:
+4
-7
@@ -24,13 +24,10 @@
|
||||
// Platform stuff.
|
||||
#if defined(WIN32) || defined(_WIN32)
|
||||
# define LOVE_WINDOWS 1
|
||||
// If _USING_V110_SDK71_ is defined it means we are using the xp toolset.
|
||||
# if defined(_MSC_VER) && (_MSC_VER >= 1700) && !_USING_V110_SDK71_
|
||||
# include <winapifamily.h>
|
||||
# if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) && !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
||||
# define LOVE_WINDOWS_UWP 1
|
||||
# define LOVE_NO_MODPLUG 1
|
||||
# endif
|
||||
# include <winapifamily.h>
|
||||
# if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) && !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
||||
# define LOVE_WINDOWS_UWP 1
|
||||
# define LOVE_NO_MODPLUG 1
|
||||
# endif
|
||||
#endif
|
||||
#if defined(linux) || defined(__linux) || defined(__linux__)
|
||||
|
||||
@@ -35,13 +35,6 @@
|
||||
#include <cmath>
|
||||
#include <sstream>
|
||||
|
||||
// VS2013 doesn't support alignof
|
||||
#if defined(_MSC_VER) && _MSC_VER <= 1800
|
||||
#define LOVE_ALIGNOF(x) __alignof(x)
|
||||
#else
|
||||
#define LOVE_ALIGNOF(x) alignof(x)
|
||||
#endif
|
||||
|
||||
namespace love
|
||||
{
|
||||
|
||||
|
||||
@@ -111,13 +111,6 @@ static size_t find_peer_index(lua_State *l, ENetHost *enet_host, ENetPeer *peer)
|
||||
return peer_index;
|
||||
}
|
||||
|
||||
// VS2013 doesn't support alignof
|
||||
#if defined(_MSC_VER) && _MSC_VER <= 1800
|
||||
#define ENET_ALIGNOF(x) __alignof(x)
|
||||
#else
|
||||
#define ENET_ALIGNOF(x) alignof(x)
|
||||
#endif
|
||||
|
||||
static bool supports_full_lightuserdata(lua_State *L)
|
||||
{
|
||||
static bool checked = false;
|
||||
|
||||
@@ -33,12 +33,6 @@
|
||||
|
||||
#ifdef LOVE_WINDOWS
|
||||
#include <windows.h>
|
||||
|
||||
#if defined(_MSC_VER) && (_MSC_VER < 1900)
|
||||
// VS 2013 and earlier doesn't have snprintf
|
||||
#define snprintf sprintf_s
|
||||
#endif // defined(_MSC_VER) && (_MSC_VER < 1900)
|
||||
|
||||
#endif // LOVE_WINDOWS
|
||||
|
||||
#ifdef LOVE_ANDROID
|
||||
|
||||
Reference in New Issue
Block a user