Skip to content

Commit 574f1d1

Browse files
committed
Base: use a type definition for mode_t on windows
For compatibility, define a mode_t which is an integral type. This matches the code in libdispatch as well as matches the type definition on Linux.
1 parent 7c7b939 commit 574f1d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CoreFoundation/Base.subproj/CoreFoundation_Prefix.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,8 @@ void OSMemoryBarrier();
276276
// Defined for source compatibility
277277
#define ino_t _ino_t
278278
#define off_t _off_t
279-
#define mode_t uint16_t
280-
279+
typedef int mode_t;
280+
281281
// This works because things aren't actually exported from the DLL unless they have a __declspec(dllexport) on them... so extern by itself is closest to __private_extern__ on Mac OS
282282
#define CF_PRIVATE extern
283283

0 commit comments

Comments
 (0)