manifest: include Python.h before standard headers
authorDrew Gottlieb <drgott@google.com>
Wed, 18 Mar 2015 11:41:36 -0700
changeset 24352 d6dbe4d1c9bc
parent 24351 cdc4f3af2497
child 24353 3f6bf9f29e7b
manifest: include Python.h before standard headers Python.h should be included before any standard headers according to the python docs: https://docs.python.org/2/c-api/intro.html#include-files
mercurial/manifest.c
--- a/mercurial/manifest.c	Wed Mar 18 13:38:06 2015 -0500
+++ b/mercurial/manifest.c	Wed Mar 18 11:41:36 2015 -0700
@@ -6,12 +6,12 @@
  * This software may be used and distributed according to the terms of
  * the GNU General Public License, incorporated herein by reference.
  */
+#include <Python.h>
+
 #include <assert.h>
 #include <string.h>
 #include <stdlib.h>
 
-#include <Python.h>
-
 /* VC9 doesn't include bool and lacks stdbool.h based on my searching */
 #ifdef _MSC_VER
 #define true 1