Files
Egor ZhdanandCory Benfield adfa636b4b Make CNIOAtomics and CNIODarwin compatible with C++ interop (#3251)
### Motivation:

This fixes linker errors such as
```
@nonobjc __C.catmc_nio_atomic_uint_least32_t_create_with_existing_storage(Swift.UnsafeMutablePointer<__C.catmc_nio_atomic_uint_least32_t>, Swift.UInt32) -> () in NIOAtomic.swift.o
   NOTE: found '_catmc_nio_atomic_uint_least32_t_create_with_existing_storage' in c-nioatomics.c.o, declaration possibly missing 'extern "C"'
```
when building with Swift/C++ interoperability enabled.

### Modifications:

Wrapped the C declarations a couple of headers in `extern "C" { ... }`
blocks.

### Result:

The project builds successfully with Swift/C++ interop enabled.

Co-authored-by: Cory Benfield <lukasa@apple.com>
2025-05-23 17:30:27 +00:00
..