File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed
Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 1515 */
1616
1717/* Needed for strptime */
18+ #if !defined(_GNU_SOURCE )
1819#define _GNU_SOURCE
20+ #endif
1921
2022#include "kms_message/kms_message.h"
2123#include "kms_message_private.h"
Original file line number Diff line number Diff line change 1818#if defined(__has_include ) && !(defined(_GNU_SOURCE ) || defined(_DARWIN_C_SOURCE ))
1919#if __has_include (< features .h > )
2020// We're using a glibc-compatible library
21+ #if !defined(_GNU_SOURCE )
2122#define _GNU_SOURCE
23+ #endif
2224#elif __has_include (< Availability .h > )
2325// We're on Apple/Darwin
2426#define _DARWIN_C_SOURCE
2527#endif
2628#else // No __has_include
27- #if __GNUC__ < 5
29+ #if __GNUC__ < 5 && !defined( _GNU_SOURCE )
2830// Best guess on older GCC is that we are using glibc
2931#define _GNU_SOURCE
3032#endif
Original file line number Diff line number Diff line change 22#if defined(__has_include ) && !(defined(_GNU_SOURCE ) || defined(_DARWIN_C_SOURCE ))
33#if __has_include (< features .h > )
44// We're using a glibc-compatible library
5+ #if !defined(_GNU_SOURCE )
56#define _GNU_SOURCE
7+ #endif
68#elif __has_include (< Availability .h > )
79// We're on Apple/Darwin
810#define _DARWIN_C_SOURCE
911#endif
1012#else // No __has_include
11- #if __GNUC__ < 5
13+ #if __GNUC__ < 5 && !defined( _GNU_SOURCE )
1214// Best guess on older GCC is that we are using glibc
1315#define _GNU_SOURCE
1416#endif
You can’t perform that action at this time.
0 commit comments