Update of /cvsroot/mahogany/M/include
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25891/include

Modified Files:
        MPython.h 
Log Message:
suppress warning about _POSIX_C_SOURCE redefinition under Linux

Index: MPython.h
===================================================================
RCS file: /cvsroot/mahogany/M/include/MPython.h,v
retrieving revision 1.13
retrieving revision 1.14
diff -b -u -2 -r1.13 -r1.14
--- MPython.h   14 Jan 2004 00:30:52 -0000      1.13
+++ MPython.h   21 Jul 2004 23:30:36 -0000      1.14
@@ -37,6 +37,16 @@
 #endif // OS_WIN
 
+// under Unix we get annoying messages about redefinition of this...
+#ifdef _POSIX_C_SOURCE
+   #define POSIX_C_SOURCE_WAS_DEFINED _POSIX_C_SOURCE
+   #undef _POSIX_C_SOURCE
+#endif
+
 #include <Python.h>
 
+#if defined(POSIX_C_SOURCE_WAS_DEFINED) && !defined(_POSIX_C_SOURCE)
+   #define _POSIX_C_SOURCE POSIX_C_SOURCE_WAS_DEFINED
+#endif
+   
 #ifdef USE_PYTHON_DYNAMIC
 



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to