Bug 676649 - Include jspubtd.h automagically when necessary in IDL files; r=khuey
This commit is contained in:
@@ -178,6 +178,10 @@ include = """
|
||||
#endif
|
||||
"""
|
||||
|
||||
jspubtd_include = """
|
||||
#include "jspubtd.h"
|
||||
"""
|
||||
|
||||
header_end = """/* For IDL files that don't want to include root IDL files. */
|
||||
#ifndef NS_NO_VTABLE
|
||||
#define NS_NO_VTABLE
|
||||
@@ -207,6 +211,9 @@ def print_header(idl, fd, filename):
|
||||
fd.write('\n')
|
||||
fd.write(include % {'basename': idl_basename(inc.filename)})
|
||||
|
||||
if idl.needsJSTypes():
|
||||
fd.write(jspubtd_include)
|
||||
|
||||
fd.write('\n')
|
||||
fd.write(header_end)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user