Skip to content

Commit 5bf8032

Browse files
committed
Translate correct C++ version with suitable compiler
1 parent 97a8483 commit 5bf8032

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

win32/build/confutils.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3104,6 +3104,10 @@ function toolset_setup_common_cflags()
31043104
}
31053105
}
31063106

3107+
if (VCVERS >= 1914) {
3108+
/* This is only in effect for CXX sources, __cplusplus is not defined in C sources. */
3109+
ADD_FLAG("CFLAGS", "/Zc:__cplusplus");
3110+
}
31073111
} else if (CLANG_TOOLSET) {
31083112
if (X64) {
31093113
ADD_FLAG('CFLAGS', '-m64');

0 commit comments

Comments
 (0)