Browse Source

Remove #ifdefs supporting old Visual Studio versions.

Sasha Szpakowski 2 years ago
parent
commit
7137c3ffb7
4 changed files with 4 additions and 27 deletions
  1. 4 7
      src/common/config.h
  2. 0 7
      src/common/runtime.cpp
  3. 0 7
      src/libraries/enet/enet.cpp
  4. 0 6
      src/modules/love/love.cpp

+ 4 - 7
src/common/config.h

@@ -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.
-#	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
 #endif
 #endif
 #if defined(linux) || defined(__linux) || defined(__linux__)
 #if defined(linux) || defined(__linux) || defined(__linux__)

+ 0 - 7
src/common/runtime.cpp

@@ -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
 {
 {
 
 

+ 0 - 7
src/libraries/enet/enet.cpp

@@ -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;

+ 0 - 6
src/modules/love/love.cpp

@@ -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