Skip to content

Commit 4f7309d

Browse files
committed
[Windows] Add an implementation for the missing bzero function
Rebranch is currently failing with a missing declaration for `bzero` on Windows. Add a definition as in other uses of `bzero`.
1 parent bfead15 commit 4f7309d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CoreFoundation/URL.subproj/CFURLComponents_URIParser.c

+4
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
#include "CFURLComponents_Internal.h"
1010
#include "CFInternal.h"
1111

12+
#if TARGET_OS_WIN32
13+
#define bzero(dst, size) ZeroMemory(dst, size)
14+
#endif
15+
1216
typedef CF_ENUM(CFIndex, URLPredefinedCharacterSet) {
1317
kURLUserAllowedCharacterSet = 0,
1418
kURLPasswordAllowedCharacterSet = 1,

0 commit comments

Comments
 (0)