In Foundation there is C macro NSURLResponseUnknownLength defined as a long long :

#define NSURLResponseUnknownLength ((long long)-1)

Due to the way macros are bridged to Swift, this constant is accessible in an Objective-C application, but not in a Swift application. How can I make macros like these visible to Swift?

I've tried wrapping the macro in a global C function in my bridging header:

long long getNSURLResponseUnknownLength() { return NSURLResponseUnknownLength; }