[Scipy-svn] r2534 - trunk/Lib/sandbox/newoptimize/tnc

scipy-svn at scipy.org scipy-svn at scipy.org
Thu Jan 11 01:48:25 CST 2007


Author: jarrod.millman
Date: 2007-01-11 01:48:11 -0600 (Thu, 11 Jan 2007)
New Revision: 2534

Modified:
   trunk/Lib/sandbox/newoptimize/tnc/moduleTNC.c
Log:
Make ext module typespecs to use PyMODINIT_FUNC that is essential for mingw32 and c++ code combination to work correctly. see [1882]


Modified: trunk/Lib/sandbox/newoptimize/tnc/moduleTNC.c
===================================================================
--- trunk/Lib/sandbox/newoptimize/tnc/moduleTNC.c	2007-01-11 07:45:15 UTC (rev 2533)
+++ trunk/Lib/sandbox/newoptimize/tnc/moduleTNC.c	2007-01-11 07:48:11 UTC (rev 2534)
@@ -304,7 +304,7 @@
   {NULL, NULL}
 };
 
-DL_EXPORT(void) initmoduleTNC(void)
+PyMODINIT_FUNC initmoduleTNC(void)
 {
   (void) Py_InitModule("moduleTNC", moduleTNC_methods);
 }



More information about the Scipy-svn mailing list