From 54d12128c8e13f4ad0fff38e464106fdbd8a17a2 Mon Sep 17 00:00:00 2001 From: Alexander Dodatko Date: Fri, 27 Jul 2018 16:53:54 +0300 Subject: [PATCH] [#3] replaced extern with FOUNDATION_EXPORT for better obj-c++ support --- .../JiveAuthenticatingHTTPProtocol/JAHPCacheStoragePolicy.h | 2 +- .../JiveAuthenticatingHTTPProtocol/JAHPCacheStoragePolicy.m | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Source/JiveAuthenticatingHTTPProtocol/JAHPCacheStoragePolicy.h b/Source/JiveAuthenticatingHTTPProtocol/JAHPCacheStoragePolicy.h index b4ec9b6..77a7fe7 100644 --- a/Source/JiveAuthenticatingHTTPProtocol/JAHPCacheStoragePolicy.h +++ b/Source/JiveAuthenticatingHTTPProtocol/JAHPCacheStoragePolicy.h @@ -58,4 +58,4 @@ * \returns A cache storage policy to use. */ -extern NSURLCacheStoragePolicy JAHPCacheStoragePolicyForRequestAndResponse(NSURLRequest * request, NSHTTPURLResponse * response); +FOUNDATION_EXPORT NSURLCacheStoragePolicy JAHPCacheStoragePolicyForRequestAndResponse(NSURLRequest * request, NSHTTPURLResponse * response); diff --git a/Source/JiveAuthenticatingHTTPProtocol/JAHPCacheStoragePolicy.m b/Source/JiveAuthenticatingHTTPProtocol/JAHPCacheStoragePolicy.m index fca3496..32c8df8 100644 --- a/Source/JiveAuthenticatingHTTPProtocol/JAHPCacheStoragePolicy.m +++ b/Source/JiveAuthenticatingHTTPProtocol/JAHPCacheStoragePolicy.m @@ -47,7 +47,10 @@ OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF #import "JAHPCacheStoragePolicy.h" -extern NSURLCacheStoragePolicy JAHPCacheStoragePolicyForRequestAndResponse(NSURLRequest * request, NSHTTPURLResponse * response) +FOUNDATION_EXPORT +NSURLCacheStoragePolicy JAHPCacheStoragePolicyForRequestAndResponse( + NSURLRequest * request, + NSHTTPURLResponse * response) // See comment in header. { BOOL cacheable;