[Numpy-svn] r5609 - trunk/numpy/core/include/numpy

numpy-svn@scip... numpy-svn@scip...
Tue Aug 5 03:25:08 CDT 2008


Author: cdavid
Date: 2008-08-05 03:25:04 -0500 (Tue, 05 Aug 2008)
New Revision: 5609

Modified:
   trunk/numpy/core/include/numpy/ndarrayobject.h
Log:
Fix NPY_INTP_FMT when C99 format available (typo + forgot to include inttypes.h),

Modified: trunk/numpy/core/include/numpy/ndarrayobject.h
===================================================================
--- trunk/numpy/core/include/numpy/ndarrayobject.h	2008-08-05 04:11:11 UTC (rev 5608)
+++ trunk/numpy/core/include/numpy/ndarrayobject.h	2008-08-05 08:25:04 UTC (rev 5609)
@@ -973,7 +973,10 @@
 
 /* We can only use C99 formats for npy_int_p if it is the same as intp_t, hence
  * the condition on HAVE_UNITPTR_T */
-#if NPY_USE_C99_FORMATS == 1 && HAVE_UINTPRT_T
+#if (NPY_USE_C99_FORMATS) == 1 \
+	&& (defined HAVE_UINTPTR_T) \
+	&& (defined HAVE_INTTYPES_H)
+	#include <inttypes.h>
         #undef NPY_INTP_FMT
         #define NPY_INTP_FMT PRIdPTR
 #endif



More information about the Numpy-svn mailing list