New GitHub issue #110845 from lunixbochs:<br>

<hr>

<pre>
# Bug report

### Bug description:

Including Python.h on <3.13 from a .cpp file results in the following:

```
In file included from include/python3.11/Python.h:50:
include/python3.11/bytesobject.h:10:1: error: import of C++ module 'Darwin.C.stdarg' appears within extern "C" language linkage specification [-Wmodule-import-in-extern-c]
```

You can work around this on a per project basis with `-Wno-module-import-in-extern-c`, but that's still pretty annoying.

This is due to an include of a system header from inside an `extern "C"` block, which LLVM doesn't seem to like anymore with default flags on macOS.

I believe the changes related to https://github.com/python/cpython/pull/108769 will fix this. Can we get them backported?

### CPython versions tested on:

3.11, 3.12

### Operating systems tested on:

macOS
</pre>

<hr>

<a href="https://github.com/python/cpython/issues/110845">View on GitHub</a>
<p>Labels: type-bug</p>
<p>Assignee: </p>