r17449 by fschmid - Compile fix regarding symbols defined by python.h

scribus-commit scribus-commit at lists.scribus.net
Mon Apr 16 20:02:10 UTC 2012


Author: fschmid
Date: Mon Apr 16 20:02:10 2012
New Revision: 17449

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=17449
Log:
Compile fix regarding symbols defined by python.h

Modified:
    trunk/Scribus/scribus/plugins/scriptplugin/cmdvar.h

Modified: trunk/Scribus/scribus/plugins/scriptplugin/cmdvar.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17449&path=/trunk/Scribus/scribus/plugins/scriptplugin/cmdvar.h
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/cmdvar.h (original)
+++ trunk/Scribus/scribus/plugins/scriptplugin/cmdvar.h Mon Apr 16 20:02:10 2012
@@ -11,10 +11,12 @@
 #include "scconfig.h"
 
 // PV - commented out - why it was here?
-// #if defined(_XOPEN_SOURCE)
-// #define SCRIBUS_XOPEN_SOURCE
-// #undef _XOPEN_SOURCE
-// #endif
+#if defined(_XOPEN_SOURCE)
+	#undef _XOPEN_SOURCE
+#endif
+#if defined(_POSIX_C_SOURCE)
+	#undef _POSIX_C_SOURCE
+#endif
 
 #if defined(HAVE_BOOST_PYTHON)
 #include <boost/python.hpp>
@@ -29,12 +31,6 @@
 #ifndef Py_RETURN_TRUE
 	#define Py_RETURN_TRUE return Py_INCREF(Py_True), Py_True
 #endif
-
-// PV - commented out - why it was here?
-// #if defined(SCRIBUS_XOPEN_SOURCE)
-// #define _XOPEN_SOURCE
-// #undef SCRIBUS_XOPEN_SOURCE
-// #endif
 
 #include <QString>
 




More information about the scribus-commit mailing list