Closed neil477 closed 11 months ago
LGTM The same change is what I did in order to fix the code on my project
It would be nice to have this merge so my CI pipelines will work again :)
Hi,
Thank you for opening this PR. We do have an item on our backlog aimed at fixing this issue. We don't have an ETA on the release of this, but we'll be sure to update you once we have more info.
@neil477 – thanks for this fix. Just to let you know we've included part of it in #1608, which has now been released in v6.27.3.
We were unable to reproduce the second issue you mention with the <stddef.h>
include. Perhaps you can give it a re-test on the latest release and let us know if you see any issues?
Goal
Design
Initial Error
Darwin.POSIX.sys.types' appears within extern "C" language linkage specification
. The#include <sys/types.h>
contains C++ code. When nested inextern "C"
block the code is expected be only C, so the solution is to move the include outside of the extern. This seems to be a new error with the complier that ships with XCode 15.Second Error after moving the include
Declaration of 'size_t' must be imported from module 'Darwin.C.stddef' before it is required
, this just necessitated including<stddef.h>
in the extern C again.Changeset
Testing