changeset 24352:d6dbe4d1c9bc

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
author Drew Gottlieb <drgott@google.com>
date Wed, 18 Mar 2015 11:41:36 -0700
parents cdc4f3af2497
children 3f6bf9f29e7b
files mercurial/manifest.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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