mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-14 02:08:27 +08:00
Merge branch 'backport-3.31-apple-posix' into apple-posix
This commit is contained in:
@@ -23,6 +23,12 @@
|
||||
// NOLINTNEXTLINE(bugprone-reserved-identifier)
|
||||
# define _XOPEN_SOURCE 700
|
||||
#endif
|
||||
#if defined(__APPLE__)
|
||||
// Restore Darwin APIs removed by _POSIX_C_SOURCE:
|
||||
// aligned_alloc
|
||||
// NOLINTNEXTLINE(bugprone-reserved-identifier)
|
||||
# define _DARWIN_C_SOURCE
|
||||
#endif
|
||||
|
||||
#include "cmsys/Configure.h" // IWYU pragma: keep
|
||||
|
||||
|
@@ -11,6 +11,13 @@
|
||||
// NOLINTNEXTLINE(bugprone-reserved-identifier)
|
||||
# define _XOPEN_SOURCE 700
|
||||
#endif
|
||||
#if defined(__APPLE__)
|
||||
// Restore Darwin APIs removed by _POSIX_C_SOURCE:
|
||||
// aligned_alloc
|
||||
// timespec_get
|
||||
// NOLINTNEXTLINE(bugprone-reserved-identifier)
|
||||
# define _DARWIN_C_SOURCE
|
||||
#endif
|
||||
|
||||
#include "cmTimestamp.h"
|
||||
|
||||
|
Reference in New Issue
Block a user