Skip to content

Commit 91d24c1

Browse files
committed
Fix the Linux build.
1 parent 3048a91 commit 91d24c1

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

CoreFoundation/Base.subproj/CFKnownLocations.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
#include "CFPriv.h"
1414
#include "CFInternal.h"
1515

16+
#include <assert.h>
17+
1618
CONST_STRING_DECL(_kCFKnownLocationUserAny, " == _kCFKnownLocationUserAny");
1719
CONST_STRING_DECL(_kCFKnownLocationUserCurrent, " == _kCFKnownLocationUserCurrent");
1820

CoreFoundation/Base.subproj/CFKnownLocations.h

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,12 @@
1414
#include <CoreFoundation/CFURL.h>
1515

1616
CF_ASSUME_NONNULL_BEGIN
17-
CF_EXTERN_C_BEGIN
1817

1918
typedef CFStringRef CFKnownLocationUser CF_TYPED_EXTENSIBLE_ENUM;
2019

21-
CF_EXPORT
22-
const CFKnownLocationUser _kCFKnownLocationUserAny;
20+
extern const CFKnownLocationUser _kCFKnownLocationUserAny;
2321

24-
CF_EXPORT
25-
const CFKnownLocationUser _kCFKnownLocationUserCurrent;
22+
extern const CFKnownLocationUser _kCFKnownLocationUserCurrent;
2623

2724
/* A note on support:
2825
@@ -37,10 +34,8 @@ const CFKnownLocationUser _kCFKnownLocationUserCurrent;
3734
See CFKnownLocations.c for a summary of what paths are returned.
3835
*/
3936

40-
CF_EXPORT
41-
CFURLRef _Nullable _CFKnownLocationCreatePreferencesURLForUser(CFKnownLocationUser user);
37+
extern CFURLRef _Nullable _CFKnownLocationCreatePreferencesURLForUser(CFKnownLocationUser user);
4238

43-
CF_EXTERN_C_END
4439
CF_ASSUME_NONNULL_END
4540

4641
#endif /* __COREFOUNDATION_CFKNOWNLOCATIONS__ */

CoreFoundation/build.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@
293293
'String.subproj/CFRegularExpression.c',
294294
'String.subproj/CFAttributedString.c',
295295
'String.subproj/CFRunArray.c',
296+
'Base.subproj/CFKnownLocations.h',
296297
]
297298

298299
sources = CompileSources(sources_list)

build.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,7 @@
322322
'CoreFoundation/String.subproj/CFAttributedString.c',
323323
'CoreFoundation/String.subproj/CFRunArray.c',
324324
'CoreFoundation/URL.subproj/CFURLSessionInterface.c',
325+
'CoreFoundation/Base.subproj/CFKnownLocations.c',
325326
])
326327

327328
# This code is already in libdispatch so is only needed if libdispatch is

0 commit comments

Comments
 (0)