-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[CoreFoundation] Replace use of strlcpy/strlcat with our own functions. #5113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@swift-ci Please test Linux platform |
@swift-ci Please test Windows platform |
We need the Windows build to pass, though... |
|
Oops, yes, that's wrong. Will fix and re-spin the tests. |
These can _use_ `strlcpy` and `strlcat` if we have them, but we mustn't go defining `strlcpy` or `strlcat` because (a) those names are reserved, and (b) doing so without explicitly testing for their presence runs the risk of build failures from trying to define them when they already exist. rdar://137567627
32616b6
to
5b60ddf
Compare
@swift-ci Please test Linux platform |
@swift-ci Please test Windows platform |
Hopefully fixed that one. That'll teach me to try to be clever and use the nice macro (the problem being that, of course, you can't use function macros in an expression if they're undefined, even after testing whether they're defined and doing an |
@swift-ci Please test Windows platform |
These can use
strlcpy
andstrlcat
if we have them, but we mustn't go definingstrlcpy
orstrlcat
because (a) those names are reserved, and (b) doing so without explicitly testing for their presence runs the risk of build failures from trying to define them when they already exist.rdar://137567627