mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-12-04 17:24:47 +00:00
VS2015 compilation fixes
This commit is contained in:
parent
d30f9844d9
commit
deba711e0c
21 changed files with 90 additions and 55 deletions
|
@ -525,7 +525,13 @@ MACRO(NL_SETUP_BUILD)
|
||||||
# Ignore default include paths
|
# Ignore default include paths
|
||||||
ADD_PLATFORM_FLAGS("/X")
|
ADD_PLATFORM_FLAGS("/X")
|
||||||
|
|
||||||
IF(MSVC12)
|
IF(MSVC14)
|
||||||
|
ADD_PLATFORM_FLAGS("/Gy- /MP")
|
||||||
|
# /Ox is working with VC++ 2015, but custom optimizations don't exist
|
||||||
|
SET(RELEASE_CFLAGS "/Ox /GF /GS- ${RELEASE_CFLAGS}")
|
||||||
|
# without inlining it's unusable, use custom optimizations again
|
||||||
|
SET(DEBUG_CFLAGS "/Od /Ob1 /GF- ${DEBUG_CFLAGS}")
|
||||||
|
ELSEIF(MSVC12)
|
||||||
ADD_PLATFORM_FLAGS("/Gy- /MP")
|
ADD_PLATFORM_FLAGS("/Gy- /MP")
|
||||||
# /Ox is working with VC++ 2013, but custom optimizations don't exist
|
# /Ox is working with VC++ 2013, but custom optimizations don't exist
|
||||||
SET(RELEASE_CFLAGS "/Ox /GF /GS- ${RELEASE_CFLAGS}")
|
SET(RELEASE_CFLAGS "/Ox /GF /GS- ${RELEASE_CFLAGS}")
|
||||||
|
@ -557,7 +563,7 @@ MACRO(NL_SETUP_BUILD)
|
||||||
SET(DEBUG_CFLAGS "/Od /Ob1 ${DEBUG_CFLAGS}")
|
SET(DEBUG_CFLAGS "/Od /Ob1 ${DEBUG_CFLAGS}")
|
||||||
ELSE(MSVC12)
|
ELSE(MSVC12)
|
||||||
MESSAGE(FATAL_ERROR "Can't determine compiler version ${MSVC_VERSION}")
|
MESSAGE(FATAL_ERROR "Can't determine compiler version ${MSVC_VERSION}")
|
||||||
ENDIF(MSVC12)
|
ENDIF(MSVC14)
|
||||||
|
|
||||||
ADD_PLATFORM_FLAGS("/D_CRT_SECURE_NO_DEPRECATE /D_CRT_SECURE_NO_WARNINGS /D_CRT_NONSTDC_NO_WARNINGS /DWIN32 /D_WINDOWS /Zm1000 /wd4250")
|
ADD_PLATFORM_FLAGS("/D_CRT_SECURE_NO_DEPRECATE /D_CRT_SECURE_NO_WARNINGS /D_CRT_NONSTDC_NO_WARNINGS /DWIN32 /D_WINDOWS /Zm1000 /wd4250")
|
||||||
|
|
||||||
|
|
|
@ -67,7 +67,10 @@
|
||||||
# endif
|
# endif
|
||||||
# ifdef _MSC_VER
|
# ifdef _MSC_VER
|
||||||
# define NL_COMP_VC
|
# define NL_COMP_VC
|
||||||
# if _MSC_VER >= 1800
|
# if _MSC_VER >= 1900
|
||||||
|
# define NL_COMP_VC14
|
||||||
|
# define NL_COMP_VC_VERSION 140
|
||||||
|
# elif _MSC_VER >= 1800
|
||||||
# define NL_COMP_VC12
|
# define NL_COMP_VC12
|
||||||
# define NL_COMP_VC_VERSION 120
|
# define NL_COMP_VC_VERSION 120
|
||||||
# elif _MSC_VER >= 1700
|
# elif _MSC_VER >= 1700
|
||||||
|
|
|
@ -23,6 +23,32 @@
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#ifdef DXGI_STATUS_OCCLUDED
|
||||||
|
#undef DXGI_STATUS_OCCLUDED
|
||||||
|
#undef DXGI_STATUS_CLIPPED
|
||||||
|
#undef DXGI_STATUS_NO_REDIRECTION
|
||||||
|
#undef DXGI_STATUS_NO_DESKTOP_ACCESS
|
||||||
|
#undef DXGI_STATUS_GRAPHICS_VIDPN_SOURCE_IN_USE
|
||||||
|
#undef DXGI_STATUS_MODE_CHANGED
|
||||||
|
#undef DXGI_STATUS_MODE_CHANGE_IN_PROGRESS
|
||||||
|
#endif
|
||||||
|
#ifdef DXGI_ERROR_INVALID_CALL
|
||||||
|
#undef DXGI_ERROR_INVALID_CALL
|
||||||
|
#undef DXGI_ERROR_NOT_FOUND
|
||||||
|
#undef DXGI_ERROR_MORE_DATA
|
||||||
|
#undef DXGI_ERROR_UNSUPPORTED
|
||||||
|
#undef DXGI_ERROR_DEVICE_REMOVED
|
||||||
|
#undef DXGI_ERROR_DEVICE_HUNG
|
||||||
|
#undef DXGI_ERROR_DEVICE_RESET
|
||||||
|
#undef DXGI_ERROR_WAS_STILL_DRAWING
|
||||||
|
#undef DXGI_ERROR_FRAME_STATISTICS_DISJOINT
|
||||||
|
#undef DXGI_ERROR_GRAPHICS_VIDPN_SOURCE_IN_USE
|
||||||
|
#undef DXGI_ERROR_DRIVER_INTERNAL_ERROR
|
||||||
|
#undef DXGI_ERROR_NONEXCLUSIVE
|
||||||
|
#undef DXGI_ERROR_NOT_CURRENTLY_AVAILABLE
|
||||||
|
#undef DXGI_ERROR_REMOTE_CLIENT_DISCONNECTED
|
||||||
|
#undef DXGI_ERROR_REMOTE_OUTOFMEMORY
|
||||||
|
#endif
|
||||||
#include <dxgi.h>
|
#include <dxgi.h>
|
||||||
#include <initguid.h>
|
#include <initguid.h>
|
||||||
#include <CGuid.h>
|
#include <CGuid.h>
|
||||||
|
|
Loading…
Reference in a new issue