[Numpy-svn] r3697 - branches/multicore/numpy/core/cprops_thread

numpy-svn@scip... numpy-svn@scip...
Tue Apr 10 15:21:49 CDT 2007


Author: eric
Date: 2007-04-10 15:21:39 -0500 (Tue, 10 Apr 2007)
New Revision: 3697

Modified:
   branches/multicore/numpy/core/cprops_thread/cp_config.h
   branches/multicore/numpy/core/cprops_thread/mempool.h
Log:
various include/define macros to allows cprops_thread to compile with mingw32

Modified: branches/multicore/numpy/core/cprops_thread/cp_config.h
===================================================================
--- branches/multicore/numpy/core/cprops_thread/cp_config.h	2007-04-10 18:35:30 UTC (rev 3696)
+++ branches/multicore/numpy/core/cprops_thread/cp_config.h	2007-04-10 20:21:39 UTC (rev 3697)
@@ -20,6 +20,10 @@
 /* eric: used in mempool.c.  Not valid on windows. */
 /* Define to 1 if you have the `getpagesize' function. */
 #define CP_HAS_GETPAGESIZE 1
+
+#else
+/* eric: used internally by cprops_thread to turn on windows features */
+#define _WINDOWS
 #endif
 
 /* eric: This is used in mempool.c, but I don't know how important it is... */

Modified: branches/multicore/numpy/core/cprops_thread/mempool.h
===================================================================
--- branches/multicore/numpy/core/cprops_thread/mempool.h	2007-04-10 18:35:30 UTC (rev 3696)
+++ branches/multicore/numpy/core/cprops_thread/mempool.h	2007-04-10 20:21:39 UTC (rev 3697)
@@ -39,6 +39,11 @@
 #ifndef _CP_MEMPOOL_H
 #define _CP_MEMPOOL_H
 
+#ifdef _WIN32
+/* needed on minw32 for size_t */
+#include <stddef.h>
+#endif
+
 #include "common.h"
 #include "collection.h"
 



More information about the Numpy-svn mailing list