Skip to content

Commit 865bc70

Browse files
committed
asprintf exists on linux
asprintf exists on linux for quite a while, 2015 at least. do use it.
1 parent b630302 commit 865bc70

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
@@ -1472,7 +1472,7 @@ void _CF_dispatch_once(dispatch_once_t *predicate, void (^block)(void)) {
14721472
#pragma mark -
14731473
#pragma mark Windows and Linux Helpers
14741474

1475-
#if TARGET_OS_WIN32 || TARGET_OS_LINUX
1475+
#if TARGET_OS_WIN32
14761476

14771477
#include <stdio.h>
14781478

CoreFoundation/Base.subproj/CoreFoundation_Prefix.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ CF_INLINE int popcountll(long long x) {
414414
#define CF_TEST_PRIVATE CF_PRIVATE
415415
#endif
416416

417-
#if TARGET_OS_LINUX || TARGET_OS_WIN32
417+
#if TARGET_OS_WIN32
418418

419419
#include <stdarg.h>
420420

0 commit comments

Comments
 (0)