Bug 1254906 - Change the annotation on JSPrincipals::dump's definition to match that of its declaration. r=bz

The current discrepancy works because gecko and js don't actually agree
on the meaning of JS_EXPORT_API and JS_PUBLIC_API, but moving the
configure flags that incluences their meaning is going to make them
agree, and that adds a fatal warning when building nsJSPrincipals.cpp
because of the discrepancy.
This commit is contained in:
Mike Hommey 2016-03-10 14:04:11 +09:00
parent 9dcdc9ab75
commit fed1d8ce2b

View File

@ -83,7 +83,7 @@ nsJSPrincipals::Destroy(JSPrincipals *jsprin)
#ifdef DEBUG
// Defined here so one can do principals->dump() in the debugger
JS_EXPORT_API(void)
JS_PUBLIC_API(void)
JSPrincipals::dump()
{
if (debugToken == nsJSPrincipals::DEBUG_TOKEN) {