Objective C-Code on Darwin
The file Utilities/cmlibuv/src/unix/darwin-proctitle.c
includes
# include <CoreFoundation/CoreFoundation.h>
# include <ApplicationServices/ApplicationServices.h>
which are written on Objective-C.
Due to that, GCC builds on macOS fail with errors such as:
>> 2080 /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Authorization.h:193:7: error: variably modified 'bytes' at file scope
2081 193 | char bytes[kAuthorizationExternalFormLength];
Maybe renaming the file:
-
Utilities/cmlibuv/src/unix/darwin-proctitle.c
->Utilities/cmlibuv/src/unix/darwin-proctitle.m
(to.m
) could help already?Utilities/cmlibuv/src/unix/darwin.c
does not seam to include Obj-C framework code on first view.
Cross-Refs.:
Edited by Axel Huebl