Bug 1437533 - Properly declare JSTracer respecting JS_PUBLIC_API to avoid compile errors about visibility mismatch in non-unified builds. r=jorendorff

--HG--
extra : rebase_source : 3279dcead6c1c254661939c4fee9f1c8532333ad
This commit is contained in:
Jeff Walden 2018-03-12 12:56:39 -07:00
parent 1325716efc
commit 31d839ee30

View File

@ -15,7 +15,17 @@
#include "js/TypeDecls.h"
#include "js/Utility.h"
class JSTracer;
#ifdef JS_BROKEN_GCC_ATTRIBUTE_WARNING
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wattributes"
#endif // JS_BROKEN_GCC_ATTRIBUTE_WARNING
class JS_PUBLIC_API(JSTracer);
#ifdef JS_BROKEN_GCC_ATTRIBUTE_WARNING
#pragma GCC diagnostic pop
#endif // JS_BROKEN_GCC_ATTRIBUTE_WARNING
class PseudoStack;
// This file defines the classes PseudoStack and ProfileEntry.