]> granicus.if.org Git - php/commitdiff
Use wchar_t as native type in C
authorAnatol Belski <ab@php.net>
Sat, 30 Mar 2019 20:07:17 +0000 (21:07 +0100)
committerAnatol Belski <ab@php.net>
Sat, 30 Mar 2019 20:08:03 +0000 (21:08 +0100)
win32/build/confutils.js

index 4fe111a8fbb1835275e8d38f0ee2418167857671..ab97a0afff974e8b40ad51182b926fef01ff0f4b 100644 (file)
@@ -3294,6 +3294,8 @@ function toolset_setup_common_cflags()
                if (VCVERS >= 1914) {
                        ADD_FLAG("CFLAGS", "/d2FuncCache1");
                }
+
+               ADD_FLAG("CFLAGS", "/Zc:wchar_t");
        } else if (CLANG_TOOLSET) {
                if (X64) {
                        ADD_FLAG('CFLAGS', '-m64');