Skip to content

Commit 3a4fafb

Browse files
committed
CoreFoundation: remove some UID interface on Win32
The UID concept does not map to Windows very well where users are identified by a GUID and do not have a primary group. The user permission model is far richer and cannot be easily distilled to the simplistic Unix model. These are not currently used in swift-corelibs-foundation, so simply elide the interfaces for now.
1 parent b9790e0 commit 3a4fafb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CoreFoundation/Base.subproj/CFPriv.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,12 @@ CF_EXPORT void _CFRuntimeSetCFMPresent(void *a);
5757
CF_EXPORT const char *_CFProcessPath(void);
5858
CF_EXPORT const char **_CFGetProcessPath(void);
5959
CF_EXPORT const char **_CFGetProgname(void);
60+
61+
#if !TARGET_OS_WIN32
6062
CF_EXPORT void _CFGetUGIDs(uid_t *euid, gid_t *egid);
6163
CF_EXPORT uid_t _CFGetEUID(void);
6264
CF_EXPORT uid_t _CFGetEGID(void);
63-
65+
#endif
6466

6567
#if (TARGET_OS_MAC && !(TARGET_OS_EMBEDDED || TARGET_OS_IPHONE || TARGET_OS_LINUX))
6668
CF_EXPORT void _CFRunLoopSetCurrent(CFRunLoopRef rl);

0 commit comments

Comments
 (0)