diff options
author | Thomas Van Lenten <thomasvl@google.com> | 2016-01-12 10:02:48 -0500 |
---|---|---|
committer | Thomas Van Lenten <thomasvl@google.com> | 2016-01-12 10:02:48 -0500 |
commit | 2d213a306f611261d247d1520d3ef050c7f4ffea (patch) | |
tree | 0f1c0baad34c43451885924a81551afd7091bd3f /Foundation/GTMNSFileHandle+UniqueName.m | |
parent | 5309ef8bdd4a52ed0c671579aa8a631510af79cc (diff) |
Export unused symbols in category-only files for when they are used in static libs to avoid linker warnings
Diffstat (limited to 'Foundation/GTMNSFileHandle+UniqueName.m')
-rw-r--r-- | Foundation/GTMNSFileHandle+UniqueName.m | 5 |
1 files changed, 5 insertions, 0 deletions
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 |