From: Robert Bradshaw Date: Wed, 25 Feb 2009 09:58:59 +0000 (-0800) Subject: Another fix to #include ordering X-Git-Tag: 0.11.rc~37^2~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=55df14e80ddcfb122eadeb60cb642f2d0a9bf419;p=cython.git Another fix to #include ordering --- diff --git a/Cython/Compiler/Symtab.py b/Cython/Compiler/Symtab.py index 2a24b3d2..b1fdfac3 100644 --- a/Cython/Compiler/Symtab.py +++ b/Cython/Compiler/Symtab.py @@ -904,11 +904,11 @@ class ModuleScope(Scope): def add_imported_module(self, scope): if scope not in self.cimported_modules: + for filename in scope.include_files: + self.add_include_file(filename) self.cimported_modules.append(scope) for m in scope.cimported_modules: self.add_imported_module(m) - for filename in scope.include_files: - self.add_include_file(filename) def add_imported_entry(self, name, entry, pos): if entry not in self.entries: