Bug 952375. Include headers for external interfaces in UnionConversions.h. r=dzbarsky

This commit is contained in:
Boris Zbarsky 2013-12-20 14:28:18 -05:00
parent 5704575923
commit 8ddd74e1a2

View File

@ -878,7 +878,15 @@ def UnionConversions(descriptors, dictionaries, callbacks, config):
if f.isSpiderMonkeyInterface():
headers.add("jsfriendapi.h")
headers.add("mozilla/dom/TypedArray.h")
elif not f.inner.isExternal():
elif f.inner.isExternal():
providers = getRelevantProviders(descriptor, config)
for p in providers:
try:
typeDesc = p.getDescriptor(f.inner.identifier.name)
except NoSuchDescriptorError:
continue
headers.add(typeDesc.headerFile)
else:
headers.add(CGHeaders.getDeclarationFilename(f.inner))
# Check for whether we have a possibly-XPConnect-implemented
# interface. If we do, the right descriptor will come from