SF.net SVN: mahogany:[7579] trunk/M/include/MPython.h
[email protected] Fri, 04 Dec 2009 22:55:36 +0000
| Newsgroups | gmane.mail.mahogany.cvs |
|---|---|
| Message-ID | <[email protected]> |
Revision: 7579
http://mahogany.svn.sourceforge.net/mahogany/?rev=7579&view=rev
Author: vadz
Date: 2009-12-04 22:55:36 +0000 (Fri, 04 Dec 2009)
Log Message:
-----------
avoid warnings about redefinition of HAVE_SSIZE_T with MSVC and Python 2.6
Modified Paths:
--------------
trunk/M/include/MPython.h
Modified: trunk/M/include/MPython.h
===================================================================
--- trunk/M/include/MPython.h 2009-12-04 02:18:52 UTC (rev 7578)
+++ trunk/M/include/MPython.h 2009-12-04 22:55:36 UTC (rev 7579)
@@ -42,8 +42,18 @@
#undef _POSIX_C_SOURCE
#endif
+// and under Windows for this symbol which is defined in wx/defs.h
+#ifdef HAVE_SSIZE_T
+ #define HAVE_SSIZE_T_DEFINED_BY_WX
+ #undef HAVE_SSIZE_T
+#endif
+
#include <Python.h>
+#if !defined(HAVE_SSIZE_T) && defined(HAVE_SSIZE_T_DEFINED_BY_WX)
+ #define HAVE_SSIZE_T
+#endif
+
#if defined(POSIX_C_SOURCE_WAS_DEFINED) && !defined(_POSIX_C_SOURCE)
#define _POSIX_C_SOURCE POSIX_C_SOURCE_WAS_DEFINED
#endif
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing.
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev