[Libreoffice-commits] .: pyuno/source

Stephan Bergmann sbergmann at kemper.freedesktop.org
Thu Feb 16 09:15:12 PST 2012


 pyuno/source/module/pyuno_dlopenwrapper.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

New commits:
commit a545badd656ce00e36945b188f620a67e19fdf55
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Thu Feb 16 18:15:04 2012 +0100

    Work around macro redefinition warning

diff --git a/pyuno/source/module/pyuno_dlopenwrapper.c b/pyuno/source/module/pyuno_dlopenwrapper.c
index 01386e6..3bdc912 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


More information about the Libreoffice-commits mailing list