Only #include directly referenced module header files
This avoids having the nested header files also included at the top level, which is more efficient. Signed-off-by: Keith Packard <keithp@keithp.com> Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
cb686b5767
commit
1f6cd9f1fc
|
@ -190,7 +190,7 @@ def c_open(self):
|
|||
_c('#define ALIGNOF(type) offsetof(struct { char dummy; type member; }, member)')
|
||||
|
||||
if _ns.is_ext:
|
||||
for (n, h) in self.imports:
|
||||
for (n, h) in self.direct_imports:
|
||||
_hc('#include "%s.h"', h)
|
||||
|
||||
_h('')
|
||||
|
|
Loading…
Reference in New Issue