summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-08-14 16:54:44 +0200
committerJim Meyering <meyering@redhat.com>2009-08-17 11:40:24 +0200
commit31053d2027d3db9423edcfc70a725b6ca3a7c84c (patch)
tree87d78b2f9b68a15dc19d5a8cda287e34c35a53a3
parentadf20c0c4d9f488d55254f54a79079b9cacbde8d (diff)
downloadlibguestfs-31053d2027d3db9423edcfc70a725b6ca3a7c84c.tar.gz
libguestfs-31053d2027d3db9423edcfc70a725b6ca3a7c84c.tar.xz
libguestfs-31053d2027d3db9423edcfc70a725b6ca3a7c84c.zip
python: avoid "_POSIX_C_SOURCE" redefinition warning
* src/generator.ml: Include <Python.h> *before* <stdio.h> to avoid redefinition warning about "_POSIX_C_SOURCE".
-rwxr-xr-xsrc/generator.ml4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/generator.ml b/src/generator.ml
index fa0d33c2..c4be1ed8 100755
--- a/src/generator.ml
+++ b/src/generator.ml
@@ -7422,12 +7422,12 @@ and generate_python_c () =
generate_header CStyle LGPLv2;
pr "\
+#include <Python.h>
+
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
-#include <Python.h>
-
#include \"guestfs.h\"
typedef struct {