Commit Graph
4 Commits
Author SHA1 Message Date
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