mirror of
https://github.com/love2d/love.git
synced 2026-08-17 11:00:31 +02:00
Remove #ifdefs supporting old Visual Studio versions.
This commit is contained in:
+4
-7
@@ -24,13 +24,10 @@
|
|||||||
// Platform stuff.
|
// Platform stuff.
|
||||||
#if defined(WIN32) || defined(_WIN32)
|
#if defined(WIN32) || defined(_WIN32)
|
||||||
# define LOVE_WINDOWS 1
|
# define LOVE_WINDOWS 1
|
||||||
// If _USING_V110_SDK71_ is defined it means we are using the xp toolset.
|
# include <winapifamily.h>
|
||||||
# if defined(_MSC_VER) && (_MSC_VER >= 1700) && !_USING_V110_SDK71_
|
# if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) && !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
||||||
# include <winapifamily.h>
|
# define LOVE_WINDOWS_UWP 1
|
||||||
# if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) && !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
# define LOVE_NO_MODPLUG 1
|
||||||
# define LOVE_WINDOWS_UWP 1
|
|
||||||
# define LOVE_NO_MODPLUG 1
|
|
||||||
# endif
|
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
#if defined(linux) || defined(__linux) || defined(__linux__)
|
#if defined(linux) || defined(__linux) || defined(__linux__)
|
||||||
|
|||||||
@@ -35,13 +35,6 @@
|
|||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include <sstream>
|
#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
|
namespace love
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|||||||
@@ -111,13 +111,6 @@ static size_t find_peer_index(lua_State *l, ENetHost *enet_host, ENetPeer *peer)
|
|||||||
return peer_index;
|
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 supports_full_lightuserdata(lua_State *L)
|
||||||
{
|
{
|
||||||
static bool checked = false;
|
static bool checked = false;
|
||||||
|
|||||||
@@ -33,12 +33,6 @@
|
|||||||
|
|
||||||
#ifdef LOVE_WINDOWS
|
#ifdef LOVE_WINDOWS
|
||||||
#include <windows.h>
|
#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
|
#endif // LOVE_WINDOWS
|
||||||
|
|
||||||
#ifdef LOVE_ANDROID
|
#ifdef LOVE_ANDROID
|
||||||
|
|||||||
Reference in New Issue
Block a user