mirror of
https://github.com/dhewm/dhewm3-sdk.git
synced 2024-11-21 20:21:19 +00:00
It builds with VS 2017 now
This commit is contained in:
parent
0e94dc21a3
commit
02417dcecf
3 changed files with 7 additions and 0 deletions
|
@ -176,6 +176,7 @@ elseif(MSVC)
|
||||||
add_compile_options(/wd4714) # 'function' marked as __forceinline not inlined
|
add_compile_options(/wd4714) # 'function' marked as __forceinline not inlined
|
||||||
add_compile_options(/wd4996) # 'function': was declared deprecated
|
add_compile_options(/wd4996) # 'function': was declared deprecated
|
||||||
add_compile_options(/wd4068) # unknown pragma
|
add_compile_options(/wd4068) # unknown pragma
|
||||||
|
add_compile_options(/wd4458) # declaration of 'bla' hides class member
|
||||||
add_definitions(-D_ALLOW_KEYWORD_MACROS) # because of the "#define private public" and "#define protected public" in TypeInfo.cpp
|
add_definitions(-D_ALLOW_KEYWORD_MACROS) # because of the "#define private public" and "#define protected public" in TypeInfo.cpp
|
||||||
set(CMAKE_C_FLAGS_DEBUG "-D_DEBUG /Od /Zi /MDd")
|
set(CMAKE_C_FLAGS_DEBUG "-D_DEBUG /Od /Zi /MDd")
|
||||||
set(CMAKE_C_FLAGS_RELEASE "/Ox /Oy /MD")
|
set(CMAKE_C_FLAGS_RELEASE "/Ox /Oy /MD")
|
||||||
|
|
|
@ -35,7 +35,11 @@ If you have questions concerning this license or the applicable additional terms
|
||||||
//#include "framework/Unzip.h"
|
//#include "framework/Unzip.h"
|
||||||
// DG: instead of getting ZPOS64_T from some zlib header (via Unzip.h)
|
// DG: instead of getting ZPOS64_T from some zlib header (via Unzip.h)
|
||||||
// just define it here
|
// just define it here
|
||||||
|
#ifdef _WIN32
|
||||||
|
typedef unsigned __int64 ZPOS64_T;
|
||||||
|
#else
|
||||||
typedef uint64_t ZPOS64_T;
|
typedef uint64_t ZPOS64_T;
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
==============================================================
|
==============================================================
|
||||||
|
|
|
@ -73,6 +73,8 @@ typedef uint64_t Uint64;
|
||||||
#endif
|
#endif
|
||||||
#endif /* SDL_FORCE_INLINE not defined */
|
#endif /* SDL_FORCE_INLINE not defined */
|
||||||
|
|
||||||
|
#define SDL_static_cast(type, val) (type)(val)
|
||||||
|
|
||||||
#if defined(__GNUC__) && defined(__i386__) && \
|
#if defined(__GNUC__) && defined(__i386__) && \
|
||||||
!(__GNUC__ == 2 && __GNUC_MINOR__ == 95 /* broken gcc version */)
|
!(__GNUC__ == 2 && __GNUC_MINOR__ == 95 /* broken gcc version */)
|
||||||
SDL_FORCE_INLINE Uint16
|
SDL_FORCE_INLINE Uint16
|
||||||
|
|
Loading…
Reference in a new issue