fix Python.h include order
authorPatrick Ohly <patrick.ohly@intel.com>
Fri, 20 Jun 2014 08:31:01 +0000 (10:31 +0200)
committerPatrick Ohly <patrick.ohly@intel.com>
Mon, 30 Jun 2014 13:24:28 +0000 (15:24 +0200)
Python.h must be included before system headers to avoid preprocessor
warnings (see https://docs.python.org/2/extending/extending.html).

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
src/pycrosswalk.c

index 6548027..6c73ed8 100644 (file)
@@ -2,13 +2,14 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
+#include <Python.h>
+
 #include <dlfcn.h>
 #include <libgen.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 
-#include <Python.h>
 #include <callback.h>
 
 #include "xwalk/XW_Extension.h"