Commit 9795fbd
committed
Fix Windows build: compile module_win32.cpp with C++17
The VST3 SDK's module_win32.cpp uses std::filesystem::path::generic_u8string()
which returns std::u8string in C++20 but std::string in C++17. Since the SDK
code expects std::string, we compile this specific file with /std:c++17.
Also move _UNICODE and UNICODE definitions from target-level to file-level
(only for module_win32.cpp) to avoid breaking JUCE's LV2/lilv code which
uses ANSI Windows APIs.
https://claude.ai/code/session_01AY9chvBEmsCVjNZSUkNcbw1 parent ab21528 commit 9795fbd
1 file changed
+11
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
145 | | - | |
146 | | - | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
147 | 152 | | |
148 | 153 | | |
149 | 154 | | |
| |||
180 | 185 | | |
181 | 186 | | |
182 | 187 | | |
| 188 | + | |
| 189 | + | |
183 | 190 | | |
184 | 191 | | |
185 | 192 | | |
186 | 193 | | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
| 194 | + | |
191 | 195 | | |
192 | 196 | | |
193 | 197 | | |
| |||
0 commit comments