From: Michael Lee Date: Fri, 29 Jan 2016 15:23:19 +0000 (-0800) Subject: Exclude based on __APPLE__ X-Git-Tag: deprecate-dynamic-initializer~123 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a8faf48088fbf76c30ab6bdf5925e3b820d319cc;p=folly.git Exclude based on __APPLE__ Summary: This was showing up on a Linux compile to my sadness. Reviewed By: francis-ma Differential Revision: D2876010 fb-gh-sync-id: f638d593712c0aeb50177d96aaacb26575820359 --- diff --git a/folly/Portability.h b/folly/Portability.h index 0e9c471b..41c59820 100644 --- a/folly/Portability.h +++ b/folly/Portability.h @@ -231,7 +231,7 @@ namespace std { typedef ::max_align_t max_align_t; } # error cannot define platform specific thread local storage #endif -#if TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE +#if defined(__APPLE__) && (TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE) #undef FOLLY_TLS #endif