diff options
author | L. E. Segovia <amy@centricular.com> | 2024-03-23 16:34:50 -0300 |
---|---|---|
committer | L. E. Segovia <amy@centricular.com> | 2024-03-23 16:34:50 -0300 |
commit | a949f1de2d7201de603e2f4fc66ed75636e39d80 (patch) | |
tree | 10151ab2c9ba2950a66a18b332a5d1287626258c | |
parent | f89958d82420cc02c7d80cf8f365e6ed57546c92 (diff) |
build: Appease MSYS2 UCRT64 GCC 13
Undefining this macro makes GCC in standards C++ mode very unhappy:
In file included from D:/msys64/ucrt64/include/c++/13.2.0/bits/requires_hosted.h:31,
from D:/msys64/ucrt64/include/c++/13.2.0/string:38,
from ..\subprojects\webrtc-audio-processing\webrtc/rtc_base/system/file_wrapper.h:17,
from ../subprojects/webrtc-audio-processing/webrtc/rtc_base/system/file_wrapper.cc:11:
D:/msys64/ucrt64/include/c++/13.2.0/x86_64-w64-mingw32/bits/c++config.h:666:2: warning: #warning "__STRICT_ANSI__ seems to have been undefined; this is not supported" [-Wcpp]
666 | #warning "__STRICT_ANSI__ seems to have been undefined; this is not supported"
| ^~~~~~~
See: https://github.com/fmtlib/fmt/issues/2059#issue-761209068
See: #32
-rw-r--r-- | meson.build | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meson.build b/meson.build index 3843e92..de07ded 100644 --- a/meson.build +++ b/meson.build @@ -92,7 +92,7 @@ elif host_system == 'linux' os_deps += [dependency('threads')] have_posix = true elif host_system == 'windows' - platform_cflags += ['-DWEBRTC_WIN', '-D_WIN32', '-U__STRICT_ANSI__'] + platform_cflags += ['-DWEBRTC_WIN', '-D_WIN32'] # this one is for MinGW to get format specifiers from inttypes.h in C++ platform_cflags += ['-D__STDC_FORMAT_MACROS=1'] # Avoid min/max from windows.h which breaks std::min/max |