6 Commits
Author SHA1 Message Date
Gwynne Raskind 790827800d Remove cpp_magic.h import and ancient Clang compatibility hack from CNIOAtomics.h (#1111)
The inclusion of `cpp_magic.h` in `CNIOAtomics.h` is unnecessary and pollutes the namespace of anyone else importing the header. NIO now also requires Swift 5, which itself will not be built with a Clang too old to understand `_Nonnull`. Note: Removing the extra import of cpp-magic.h required moving it to the src/ directory to avoid complaints about its inclusion (or lack thereof) in the module's umbrella header.
2019-08-15 10:54:43 +01:00
Gwynne Raskind 584e107928 Rename BOOL to BOOLIFY (#1107)
Prevents conflicts when this header is included in a project using Objective-C.
2019-08-13 09:46:51 +01:00
Johannes Weiss 9bae007a15 use umbrella headers for C modules (#636)
Motivation:

SwiftPM only generates fully usable clang modules for C modules if they
have umbrella headers. Therefore, adding a generated NIO.xcodeproj to
another Xcode project as a sub-project never worked.
To make a header an umbrella header you need to name them _exactly_ like
the module.

Modifications:

give each C module an umbrella header

Result:

generated NIO Xcode projects can be used as sub-projects.
2018-10-19 14:49:43 +01:00
Cory Benfield db88f35d49 Remove unnecessary import in c-atomics.h (#561) 2018-08-09 12:15:32 +01:00
Johannes Weiß 4098832e4e don't use _Nonnull for clang 3.6 (#147) (#154)
Motivation:

Clang 3.6 doesn't know about `_Nonnull` which breaks compilation for our
C atomics.

Modifications:

Defined `_Nonnull` as `__attribute__((nonnull))` which seems to already
be available before clang 3.7.

Result:

NIO compiles with clang 3.6 as the default C compiler.
2018-03-14 22:11:17 +09:00
Johannes Weiß 06f9b1d63b merge ConcurrencyHelpers 2017-11-21 18:32:33 +00:00