Skip to content

Commit 0f1e979

Browse files
Fix GH-13789: build failed mbstring_arginfo.h when Visual C++ on Windows (#13906)
Probably CP932 environment can't compile. So add /utf-8 flag.
1 parent 1e4bb03 commit 0f1e979

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ext/mbstring/config.w32

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ if (PHP_MBSTRING != "no") {
1313
ADD_FLAG("CFLAGS_MBSTRING", "-Iext/mbstring -Iext/mbstring/libmbfl -Iext/mbstring/libmbfl/mbfl \
1414
/D HAVE_STRICMP /D MBFL_DLL_EXPORT=1 /DZEND_ENABLE_STATIC_TSRMLS_CACHE=1")
1515

16+
ADD_FLAG("CFLAGS_BD_EXT_MBSTRING", "/utf-8")
17+
1618
FSO.CopyFile("ext\\mbstring\\libmbfl\\config.h.w32",
1719
"ext\\mbstring\\libmbfl\\config.h", true);
1820

0 commit comments

Comments
 (0)