summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/python/swig/pyevent.cc4
-rw-r--r--src/sim/init.cc4
-rw-r--r--src/sim/py_interact.cc4
-rw-r--r--util/style/sort_includes.py2
4 files changed, 7 insertions, 7 deletions
diff --git a/src/python/swig/pyevent.cc b/src/python/swig/pyevent.cc
index 53f3a3397..39c57d116 100644
--- a/src/python/swig/pyevent.cc
+++ b/src/python/swig/pyevent.cc
@@ -28,10 +28,10 @@
* Authors: Nathan Binkert
*/
-#include "python/swig/pyevent.hh"
-
#include <Python.h>
+#include "python/swig/pyevent.hh"
+
#include "base/misc.hh"
#include "sim/async.hh"
#include "sim/eventq.hh"
diff --git a/src/sim/init.cc b/src/sim/init.cc
index d46e76324..f2395eec4 100644
--- a/src/sim/init.cc
+++ b/src/sim/init.cc
@@ -41,10 +41,10 @@
* Authors: Nathan Binkert
*/
-#include "sim/init.hh"
-
#include <Python.h>
+#include "sim/init.hh"
+
#include <marshal.h>
#include <zlib.h>
diff --git a/src/sim/py_interact.cc b/src/sim/py_interact.cc
index 8acff40dd..7e6527e81 100644
--- a/src/sim/py_interact.cc
+++ b/src/sim/py_interact.cc
@@ -29,10 +29,10 @@
* Steve Reinhardt
*/
-#include "sim/py_interact.hh"
-
#include <Python.h>
+#include "sim/py_interact.hh"
+
void
py_interact()
{
diff --git a/util/style/sort_includes.py b/util/style/sort_includes.py
index 334d9e29e..a35b08468 100644
--- a/util/style/sort_includes.py
+++ b/util/style/sort_includes.py
@@ -169,8 +169,8 @@ class SortIncludes(object):
)
block_order = (
- ('main', ),
('python', ),
+ ('main', ),
('c', ),
('stl', ),
('cc', ),