Skip to content

Commit 574b0ec

Browse files
authored
Merge pull request #4612 from etcwilde/ewilde/asprintf
Define `asprintf` when `_GNU_SOURCE` is not set on Linux
2 parents bbcf916 + 96ddfc0 commit 574b0ec

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CoreFoundation/Base.subproj/CFPlatform.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1510,7 +1510,7 @@ void _CF_dispatch_once(dispatch_once_t *predicate, void (^block)(void)) {
15101510
#pragma mark -
15111511
#pragma mark Windows and Linux Helpers
15121512

1513-
#if TARGET_OS_WIN32
1513+
#if TARGET_OS_WIN32 || (TARGET_OS_LINUX && !defined(_GNU_SOURCE))
15141514

15151515
#include <stdio.h>
15161516

CoreFoundation/Base.subproj/CoreFoundation_Prefix.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ CF_INLINE int popcountll(long long x) {
448448
#define CF_TEST_PRIVATE CF_PRIVATE
449449
#endif
450450

451-
#if TARGET_OS_WIN32
451+
#if TARGET_OS_WIN32 || (TARGET_OS_LINUX && !defined(_GNU_SOURCE))
452452

453453
#include <stdarg.h>
454454

0 commit comments

Comments
 (0)