SF.net SVN: mahogany:[7586] trunk/M/include/MPython.h
[email protected] Sat, 05 Dec 2009 00:53:02 +0000
| Newsgroups | gmane.mail.mahogany.cvs |
|---|---|
| Message-ID | <[email protected]> |
Revision: 7586
http://mahogany.svn.sourceforge.net/mahogany/?rev=7586&view=rev
Author: vadz
Date: 2009-12-05 00:53:02 +0000 (Sat, 05 Dec 2009)
Log Message:
-----------
Undef PyRun_String which is already a macro in Python 2.6 to avoid warnings about redefining it
Modified Paths:
--------------
trunk/M/include/MPython.h
Modified: trunk/M/include/MPython.h
===================================================================
--- trunk/M/include/MPython.h 2009-12-05 00:51:22 UTC (rev 7585)
+++ trunk/M/include/MPython.h 2009-12-05 00:53:02 UTC (rev 7586)
@@ -387,6 +387,9 @@
#define PyImport_AddModule M_PyImport_AddModule
#define PyImport_GetModuleDict M_PyImport_GetModuleDict
#define PyImport_ReloadModule M_PyImport_ReloadModule
+// PyRun_String is already a macro in 2.6 but, surprisingly, the DLL still
+// exports it as a function too and using it seems to work fine...
+#undef PyRun_String
#define PyRun_String M_PyRun_String
#define PyOS_snprintf M_PyOS_snprintf
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