Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
quiche.h: move
extern "C"
below #include
s in C API header
This helps in using Quiche as a dependency in a Swift project. Basically, the issue is that Swift does not support mixing C and C++ code when using interop, it has to use either C or C++, so if someone already has a C++ dependency in their project, Swift will try to import Quiche as Objective-C++, but this will cause issues due to #includes. This technically is a shortcoming of Swift, not specifically an issue with Quiche, but the fix is very simple and shouldn't break anything for people using Quiche from C/C++/other languages with interop.
- Loading branch information