Skip to content

Commit aa9f12e

Browse files
committed
libstdc++: Include <sys/cdefs.h> in os_defines.h for FreeBSD [PR117210]
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.
1 parent 29032df commit aa9f12e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
// System-specific #define, typedefs, corrections, etc, go here. This
3030
// file will come before all others.
3131

32+
#include <sys/cdefs.h> // For __LONG_LONG_SUPPORTED
33+
3234
#define _GLIBCXX_USE_C99 1
3335
#define _GLIBCXX_USE_C99_STDIO 1
3436
#define _GLIBCXX_USE_C99_STDLIB 1

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
// System-specific #define, typedefs, corrections, etc, go here. This
3030
// file will come before all others.
3131

32+
#include <sys/cdefs.h> // For __LONG_LONG_SUPPORTED
33+
3234
#define _GLIBCXX_USE_C99_STDIO 1
3335
#define _GLIBCXX_USE_C99_STDLIB 1
3436
#define _GLIBCXX_USE_C99_WCHAR 1

0 commit comments

Comments
 (0)