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 15
15
*/
16
16
17
17
/* Needed for strptime */
18
+ #if !defined(_GNU_SOURCE )
18
19
#define _GNU_SOURCE
20
+ #endif
19
21
20
22
#include "kms_message/kms_message.h"
21
23
#include "kms_message_private.h"
Original file line number Diff line number Diff line change 18
18
#if defined(__has_include ) && !(defined(_GNU_SOURCE ) || defined(_DARWIN_C_SOURCE ))
19
19
#if __has_include (< features .h > )
20
20
// We're using a glibc-compatible library
21
+ #if !defined(_GNU_SOURCE )
21
22
#define _GNU_SOURCE
23
+ #endif
22
24
#elif __has_include (< Availability .h > )
23
25
// We're on Apple/Darwin
24
26
#define _DARWIN_C_SOURCE
25
27
#endif
26
28
#else // No __has_include
27
- #if __GNUC__ < 5
29
+ #if __GNUC__ < 5 && !defined( _GNU_SOURCE )
28
30
// Best guess on older GCC is that we are using glibc
29
31
#define _GNU_SOURCE
30
32
#endif
Original file line number Diff line number Diff line change 2
2
#if defined(__has_include ) && !(defined(_GNU_SOURCE ) || defined(_DARWIN_C_SOURCE ))
3
3
#if __has_include (< features .h > )
4
4
// We're using a glibc-compatible library
5
+ #if !defined(_GNU_SOURCE )
5
6
#define _GNU_SOURCE
7
+ #endif
6
8
#elif __has_include (< Availability .h > )
7
9
// We're on Apple/Darwin
8
10
#define _DARWIN_C_SOURCE
9
11
#endif
10
12
#else // No __has_include
11
- #if __GNUC__ < 5
13
+ #if __GNUC__ < 5 && !defined( _GNU_SOURCE )
12
14
// Best guess on older GCC is that we are using glibc
13
15
#define _GNU_SOURCE
14
16
#endif
You can’t perform that action at this time.
0 commit comments