diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2015-03-05 02:56:05 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2015-03-05 02:56:05 +0000 |
commit | 5b2d125c926908c0a8e6592dcb5754fb752a074e (patch) | |
tree | 8f2b4679c5f84759cdc20e0078b57b3a849917d0 /libcxxabi/src/cxa_vector.cpp | |
parent | c1d6ab9a1eb05f14ec4d408031b673dc3d4c8131 (diff) | |
download | bcm5719-llvm-5b2d125c926908c0a8e6592dcb5754fb752a074e.tar.gz bcm5719-llvm-5b2d125c926908c0a8e6592dcb5754fb752a074e.zip |
Fix build with GCC:
- GCC doesn't support #pragma mark, only Apple GCC and clang. Wrap the pragma mark's in #if 0 to make gcc ignore them but xcode still see them.
- Wrap a bunch of "#pragma clang" lines in #ifdef __clang__.
- Pacify gcc's -Wparenthesis in a case where it's quite reasonable.
llvm-svn: 231344
Diffstat (limited to 'libcxxabi/src/cxa_vector.cpp')
-rw-r--r-- | libcxxabi/src/cxa_vector.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libcxxabi/src/cxa_vector.cpp b/libcxxabi/src/cxa_vector.cpp index 3c9b535c624..c0d806f2fb8 100644 --- a/libcxxabi/src/cxa_vector.cpp +++ b/libcxxabi/src/cxa_vector.cpp @@ -17,7 +17,9 @@ namespace __cxxabiv1 { +#if 0 #pragma mark --Helper routines and classes -- +#endif namespace { inline static size_t __get_element_count ( void *p ) { @@ -102,7 +104,9 @@ namespace { }; } +#if 0 #pragma mark --Externally visible routines-- +#endif extern "C" { |