mirror of
https://github.com/apple/swift-nio
synced 2026-11-27 05:04:22 +00:00
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.
33 lines
1.1 KiB
C
33 lines
1.1 KiB
C
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This source file is part of the SwiftNIO open source project
|
|
//
|
|
// Copyright (c) 2017-2018 Apple Inc. and the SwiftNIO project authors
|
|
// Licensed under Apache License v2.0
|
|
//
|
|
// See LICENSE.txt for license information
|
|
// See CONTRIBUTORS.txt for the list of SwiftNIO project authors
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
#ifndef C_NIO_ZLIB_H
|
|
#define C_NIO_ZLIB_H
|
|
|
|
#include <zlib.h>
|
|
|
|
static inline int CNIOZlib_deflateInit2(z_streamp strm,
|
|
int level,
|
|
int method,
|
|
int windowBits,
|
|
int memLevel,
|
|
int strategy) {
|
|
return deflateInit2(strm, level, method, windowBits, memLevel, strategy);
|
|
}
|
|
|
|
static inline int CNIOZlib_inflateInit2(z_streamp strm, int windowBits) {
|
|
return inflateInit2(strm, windowBits);
|
|
}
|
|
|
|
#endif
|