[Git][pulseaudio/webrtc-audio-processing][master] 2 commits: build: Appease MSYS2 UCRT64 GCC 13

Arun Raghavan (@arun) gitlab at gitlab.freedesktop.org
Thu Apr 4 21:38:02 UTC 2024



Arun Raghavan pushed to branch master at PulseAudio / webrtc-audio-processing


Commits:
a949f1de by L. E. Segovia at 2024-03-23T16:34:50-03:00
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

- - - - -
9a202fb8 by L. E. Segovia at 2024-04-04T18:32:39-03:00
file_wrapper.h: Fix build with GCC13

It is a missed instance of cdec109331de34958a892a1418d67806b171b862 (!31).

Fixes #32

- - - - -


2 changed files:

- meson.build
- webrtc/rtc_base/system/file_wrapper.h


Changes:

=====================================
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


=====================================
webrtc/rtc_base/system/file_wrapper.h
=====================================
@@ -13,6 +13,7 @@
 
 #include <stddef.h>
 #include <stdio.h>
+#include <stdint.h>
 
 #include <string>
 



View it on GitLab: https://gitlab.freedesktop.org/pulseaudio/webrtc-audio-processing/-/compare/f89958d82420cc02c7d80cf8f365e6ed57546c92...9a202fb8c218223d24dfbbe6130053c68111e97a

-- 
View it on GitLab: https://gitlab.freedesktop.org/pulseaudio/webrtc-audio-processing/-/compare/f89958d82420cc02c7d80cf8f365e6ed57546c92...9a202fb8c218223d24dfbbe6130053c68111e97a
You're receiving this email because of your account on gitlab.freedesktop.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-commits/attachments/20240404/92d77da7/attachment-0001.htm>


More information about the pulseaudio-commits mailing list