Bug 1234033 - Unbreak build --with-system-bz2 using Clang. r?dvander draft
authorJan Beich <jbeich@FreeBSD.org>
Fri, 24 Jul 2015 08:09:04 +0000
changeset 316575 a320356e9153ba1f4e55448128db15aeb9ca0db6
parent 316574 ca28125f2f0d36968e9fdffcccc5b817ee0ea324
child 512180 67c06c5f918060fb07ffdb67785f95539fd19a84
push id8569
push userjbeich@vfemail.net
push dateSun, 20 Dec 2015 14:56:52 +0000
reviewersdvander
bugs1234033
milestone46.0a1
Bug 1234033 - Unbreak build --with-system-bz2 using Clang. r?dvander
toolkit/mozapps/update/updater/updater.cpp
--- a/toolkit/mozapps/update/updater/updater.cpp
+++ b/toolkit/mozapps/update/updater/updater.cpp
@@ -152,17 +152,17 @@ BOOL PathGetSiblingFilePath(LPWSTR desti
 #endif
 
 //-----------------------------------------------------------------------------
 
 // This variable lives in libbz2.  It's declared in bzlib_private.h, so we just
 // declare it here to avoid including that entire header file.
 #define BZ2_CRC32TABLE_UNDECLARED
 
-#if MOZ_IS_GCC
+#if MOZ_IS_GCC || defined(__clang__)
 extern "C"  __attribute__((visibility("default"))) unsigned int BZ2_crc32Table[256];
 #undef BZ2_CRC32TABLE_UNDECLARED
 #elif defined(__SUNPRO_C) || defined(__SUNPRO_CC)
 extern "C" __global unsigned int BZ2_crc32Table[256];
 #undef BZ2_CRC32TABLE_UNDECLARED
 #endif
 #if defined(BZ2_CRC32TABLE_UNDECLARED)
 extern "C" unsigned int BZ2_crc32Table[256];