Skip to content

Commit 7d521e4

Browse files
authored
Merge pull request #2895 from zoecarver/fix/skip-icu-in-cxx-mode
2 parents 5b9797f + f82f4cb commit 7d521e4

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CoreFoundation/Base.subproj/ForSwiftFoundationOnly.h

+5-1
Original file line numberDiff line numberDiff line change
@@ -677,8 +677,12 @@ CF_EXPORT int _CFPosixSpawnFileActionsDestroy(_CFPosixSpawnFileActionsRef file_a
677677
CF_EXPORT void _CFPosixSpawnFileActionsDealloc(_CFPosixSpawnFileActionsRef file_actions);
678678
CF_EXPORT int _CFPosixSpawnFileActionsAddDup2(_CFPosixSpawnFileActionsRef file_actions, int filedes, int newfiledes);
679679
CF_EXPORT int _CFPosixSpawnFileActionsAddClose(_CFPosixSpawnFileActionsRef file_actions, int filedes);
680+
#ifdef __cplusplus
681+
CF_EXPORT int _CFPosixSpawn(pid_t *_CF_RESTRICT pid, const char *_CF_RESTRICT path, _CFPosixSpawnFileActionsRef file_actions, _CFPosixSpawnAttrRef _Nullable _CF_RESTRICT attrp, char *const argv[], char *const envp[]);
682+
#else
680683
CF_EXPORT int _CFPosixSpawn(pid_t *_CF_RESTRICT pid, const char *_CF_RESTRICT path, _CFPosixSpawnFileActionsRef file_actions, _CFPosixSpawnAttrRef _Nullable _CF_RESTRICT attrp, char *_Nullable const argv[_Nullable _CF_RESTRICT], char *_Nullable const envp[_Nullable _CF_RESTRICT]);
681-
#endif
684+
#endif // __cplusplus
685+
#endif // !TARGET_OS_WIN32
682686

683687
_CF_EXPORT_SCOPE_END
684688

CoreFoundation/Locale.subproj/CFCalendar_Internal.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include "CFDateComponents.h"
2020
#include "CFDateInterval.h"
2121

22-
#if __has_include(<unicode/ucal.h>)
22+
#if __has_include(<unicode/ucal.h>) && !defined(__cplusplus)
2323
#include <unicode/ucal.h>
2424
#else
2525
typedef void *UCalendar;

0 commit comments

Comments
 (0)