diff options
Diffstat (limited to 'Foundation')
-rw-r--r-- | Foundation/GTMNSDictionary+URLArguments.m | 10 | ||||
-rw-r--r-- | Foundation/GTMNSFileHandle+UniqueName.m | 5 | ||||
-rw-r--r-- | Foundation/GTMObjC2Runtime.m | 4 |
3 files changed, 17 insertions, 2 deletions
diff --git a/Foundation/GTMNSDictionary+URLArguments.m b/Foundation/GTMNSDictionary+URLArguments.m index 4799b2d..5a7aa5f 100644 --- a/Foundation/GTMNSDictionary+URLArguments.m +++ b/Foundation/GTMNSDictionary+URLArguments.m @@ -6,9 +6,9 @@ // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy // of the License at -// +// // http://www.apache.org/licenses/LICENSE-2.0 -// +// // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the @@ -21,6 +21,12 @@ #import "GTMMethodCheck.h" #import "GTMDefines.h" + +// Export a nonsense symbol to suppress a libtool warning when this is linked alone in a static lib. +__attribute__((visibility("default"))) + char GTMNSDictionaryURLArgumentsExportToSuppressLibToolWarning = 0; + + @implementation NSDictionary (GTMNSDictionaryURLArgumentsAdditions) GTM_METHOD_CHECK(NSString, gtm_stringByEscapingForURLArgument); diff --git a/Foundation/GTMNSFileHandle+UniqueName.m b/Foundation/GTMNSFileHandle+UniqueName.m index d373159..1424c44 100644 --- a/Foundation/GTMNSFileHandle+UniqueName.m +++ b/Foundation/GTMNSFileHandle+UniqueName.m @@ -20,6 +20,11 @@ #include <unistd.h> +// Export a nonsense symbol to suppress a libtool warning when this is linked alone in a static lib. +__attribute__((visibility("default"))) + char GTMFileHandleUniqueNameExportToSuppressLibToolWarning = 0; + + @implementation NSFileHandle (GTMFileHandleUniqueNameAdditions) + (id)gtm_fileHandleWithUniqueNameBasedOn:(NSString *)pathTemplate diff --git a/Foundation/GTMObjC2Runtime.m b/Foundation/GTMObjC2Runtime.m index e1af2bb..1475103 100644 --- a/Foundation/GTMObjC2Runtime.m +++ b/Foundation/GTMObjC2Runtime.m @@ -18,6 +18,10 @@ #import "GTMObjC2Runtime.h" +// Export a nonsense symbol to suppress a libtool warning when this is linked alone in a static lib. +__attribute__((visibility("default"))) char GTMObjC2RuntimeExportToSuppressLibToolWarning = 0; + + #if GTM_MACOS_SDK && (MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5) && !__OBJC2__ #import <objc/objc-runtime.h> #import <stdlib.h> |