Skip to content

Commit 6001581

Browse files
committed
disable dx9ex features for vc6
1 parent 096d2e1 commit 6001581

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

CMakeLists.txt

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,17 @@ endif()
3333
# Top level project, doesn't really affect anything.
3434
project(genzh LANGUAGES C CXX)
3535

36-
if(WIN32)
37-
add_definitions(-D_WIN32_WINNT=0x0601)
38-
endif()
36+
add_definitions(-DD3D_DISABLE_9EX)
3937

4038
# This file handles extra settings wanted/needed for different compilers.
4139
include(cmake/compilers.cmake)
4240

41+
if(WIN32)
42+
# Target Windows XP (0x0501) globally to ensure compatibility with the VC6 baseline
43+
# and avoid conflicts with modern API definitions not supported by older SDKs.
44+
add_definitions(-D_WIN32_WINNT=0x0501)
45+
endif()
46+
4347
# Debug symbol stripping for Release builds (MinGW)
4448
include(cmake/debug_strip.cmake)
4549

0 commit comments

Comments
 (0)