[Numpy-svn] r8257 - trunk/numpy/numarray/include/numpy

numpy-svn@scip... numpy-svn@scip...
Tue Feb 23 04:01:49 CST 2010


Author: charris
Date: 2010-02-23 04:01:49 -0600 (Tue, 23 Feb 2010)
New Revision: 8257

Modified:
   trunk/numpy/numarray/include/numpy/libnumarray.h
Log:
BUG: NPY_PY3K probably isn't defined when libnumarray.h is included.

Modified: trunk/numpy/numarray/include/numpy/libnumarray.h
===================================================================
--- trunk/numpy/numarray/include/numpy/libnumarray.h	2010-02-23 09:49:38 UTC (rev 8256)
+++ trunk/numpy/numarray/include/numpy/libnumarray.h	2010-02-23 10:01:49 UTC (rev 8257)
@@ -40,7 +40,7 @@
 #endif
 #endif
 
-#if defined(NPY_PY3K)
+#if PY_VERSION_HEX >= 0x03010000
 #define _import_libnumarray()                                                    \
         {                                                                        \
         PyObject *module = PyImport_ImportModule("numpy.numarray._capi");        \



More information about the Numpy-svn mailing list