summaryrefslogtreecommitdiff
path: root/lib/command_py.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2019-06-12 20:18:12 +0200
committerDavid Lamparter <equinox@diac24.net>2019-06-13 13:35:33 +0200
commit2618a52ed307ffe62f45fb345fa5d90a631fc4f6 (patch)
treee4de811dfe49ac12e8d6ba52b604b2f6beb1f159 /lib/command_py.c
parent899e4095d1b5d3a40114df1a8cd86c6d18dbc9d8 (diff)
*: config.h or zebra.h is the first #include
This is mostly relevant for Solaris, where config.h sets up some #define that affect overall header behaviour, so it needs to be before anything else. Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'lib/command_py.c')
-rw-r--r--lib/command_py.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/command_py.c b/lib/command_py.c
index 1554af172f..4ec116df33 100644
--- a/lib/command_py.c
+++ b/lib/command_py.c
@@ -22,6 +22,12 @@
* memory leak or SEGV for things that haven't been well-tested.
*/
+/* This file is "exempt" from having
+#include "config.h"
+ * as the first include statement because Python.h also does environment
+ * setup & these trample over each other.
+ */
+
#include <Python.h>
#include "structmember.h"
#include <string.h>