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
			
			
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user