diff options
| author | Anatol Belski <ab@php.net> | 2018-05-28 17:12:06 +0200 |
|---|---|---|
| committer | Anatol Belski <ab@php.net> | 2018-05-28 17:12:06 +0200 |
| commit | 5bf8032112016c2f60149d05d20c8756a6e2664a (patch) | |
| tree | 0fe19ae36f393fefbe3b08a178200a4c80ec9987 | |
| parent | 97a84831432a9b727235ee4727905919681aeac4 (diff) | |
| download | php-git-5bf8032112016c2f60149d05d20c8756a6e2664a.tar.gz | |
Translate correct C++ version with suitable compiler
| -rw-r--r-- | win32/build/confutils.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/win32/build/confutils.js b/win32/build/confutils.js index 99a2521301..b33600ce3f 100644 --- a/win32/build/confutils.js +++ b/win32/build/confutils.js @@ -3104,6 +3104,10 @@ function toolset_setup_common_cflags() } } + if (VCVERS >= 1914) { + /* This is only in effect for CXX sources, __cplusplus is not defined in C sources. */ + ADD_FLAG("CFLAGS", "/Zc:__cplusplus"); + } } else if (CLANG_TOOLSET) { if (X64) { ADD_FLAG('CFLAGS', '-m64'); |
