]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Include <sys/cdefs.h> in os_defines.h for FreeBSD [PR117210]
authorJonathan Wakely <jwakely@redhat.com>
Wed, 27 Nov 2024 14:10:34 +0000 (14:10 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 28 Nov 2024 10:07:37 +0000 (10:07 +0000)
This is needed so that __LONG_LONG_SUPPORTED is defined before we depend
on it.

libstdc++-v3/ChangeLog:

PR libstdc++/117210
* config/os/bsd/dragonfly/os_defines.h: Include <sys/cdefs.h>.
* config/os/bsd/freebsd/os_defines.h: Likewise.

libstdc++-v3/config/os/bsd/dragonfly/os_defines.h
libstdc++-v3/config/os/bsd/freebsd/os_defines.h

index e030fa3dc872d235540d8832ed61b38d87d9c62a..9c5aaabc90f3a7d52684ae1db7f5f7e4dfaca8c5 100644 (file)
@@ -29,6 +29,8 @@
 // System-specific #define, typedefs, corrections, etc, go here.  This
 // file will come before all others.
 
+#include <sys/cdefs.h> // For __LONG_LONG_SUPPORTED
+
 #define _GLIBCXX_USE_C99 1
 #define _GLIBCXX_USE_C99_STDIO 1
 #define _GLIBCXX_USE_C99_STDLIB 1
index 0d63ae6cec4c4805ae522e726ab00f239ce8e86e..125dfdc18885755ad726e9772776e8fea88078ee 100644 (file)
@@ -29,6 +29,8 @@
 // System-specific #define, typedefs, corrections, etc, go here.  This
 // file will come before all others.
 
+#include <sys/cdefs.h> // For __LONG_LONG_SUPPORTED
+
 #define _GLIBCXX_USE_C99_STDIO 1
 #define _GLIBCXX_USE_C99_STDLIB 1
 #define _GLIBCXX_USE_C99_WCHAR 1