summaryrefslogtreecommitdiff
path: root/pyuno
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-02-16 18:15:04 +0100
committerStephan Bergmann <sbergman@redhat.com>2012-02-16 18:15:04 +0100
commita545badd656ce00e36945b188f620a67e19fdf55 (patch)
tree9b930c9d62c206cf9c50692c8d58038ab6d68b22 /pyuno
parentca9801809249dbc98b28d3a24325fa54f2e91724 (diff)
Work around macro redefinition warning
Diffstat (limited to 'pyuno')
-rw-r--r--pyuno/source/module/pyuno_dlopenwrapper.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/pyuno/source/module/pyuno_dlopenwrapper.c b/pyuno/source/module/pyuno_dlopenwrapper.c
index 01386e6ead4d..3bdc912f95bd 100644
--- a/pyuno/source/module/pyuno_dlopenwrapper.c
+++ b/pyuno/source/module/pyuno_dlopenwrapper.c
@@ -26,6 +26,10 @@
*
************************************************************************/
+/* make Python.h go first as a hack to work around _POSIX_C_SOURCE redefinition
+ warnings: */
+#include "Python.h"
+
#include "sal/config.h"
#include <stdlib.h>
@@ -36,8 +40,6 @@
#endif
#include <dlfcn.h>
-#include "Python.h"
-
#include "rtl/string.h"
/* A wrapper around libpyuno.so, making sure the latter is loaded RTLD_GLOBAL