Skip to content

Commit 22cfb9e

Browse files
committed
Add Windows-specific compile definitions for module_win32.cpp
Add NOMINMAX and WIN32_LEAN_AND_MEAN definitions to avoid conflicts with JUCE's Windows header handling. https://claude.ai/code/session_01AY9chvBEmsCVjNZSUkNcbw
1 parent eb7b3d4 commit 22cfb9e

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

CMakeLists.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,11 @@ if(PLUGINVAL_VST3_VALIDATOR)
138138
set_source_files_properties(${VST3_MODULE_MAC_FILE} PROPERTIES
139139
COMPILE_FLAGS "-fobjc-arc")
140140
elseif(WIN32)
141-
list(APPEND VST3ValidatorFiles
142-
${vst3sdk_SOURCE_DIR}/public.sdk/source/vst/hosting/module_win32.cpp)
141+
set(VST3_MODULE_WIN_FILE ${vst3sdk_SOURCE_DIR}/public.sdk/source/vst/hosting/module_win32.cpp)
142+
list(APPEND VST3ValidatorFiles ${VST3_MODULE_WIN_FILE})
143+
# Add Windows-specific compile definitions for compatibility with JUCE
144+
set_source_files_properties(${VST3_MODULE_WIN_FILE} PROPERTIES
145+
COMPILE_DEFINITIONS "NOMINMAX;WIN32_LEAN_AND_MEAN")
143146
endif()
144147

145148
target_sources(pluginval PRIVATE ${VST3ValidatorFiles})

0 commit comments

Comments
 (0)