[Numpy-svn] r6029 - trunk/numpy/random/mtrand

numpy-svn@scip... numpy-svn@scip...
Fri Nov 14 10:52:29 CST 2008


Author: cdavid
Date: 2008-11-14 10:52:18 -0600 (Fri, 14 Nov 2008)
New Revision: 6029

Modified:
   trunk/numpy/random/mtrand/randomkit.c
Log:
Postpone time.h include because we will need to customize it on windows.

Modified: trunk/numpy/random/mtrand/randomkit.c
===================================================================
--- trunk/numpy/random/mtrand/randomkit.c	2008-11-14 16:51:51 UTC (rev 6028)
+++ trunk/numpy/random/mtrand/randomkit.c	2008-11-14 16:52:18 UTC (rev 6029)
@@ -70,12 +70,12 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <errno.h>
-#include <time.h>
 #include <limits.h>
 #include <math.h>
 
 #ifdef _WIN32
 /* Windows */
+#include <time.h>
 #include <sys/timeb.h>
 #ifndef RK_NO_WINCRYPT
 /* Windows crypto */
@@ -87,6 +87,7 @@
 #endif
 #else
 /* Unix */
+#include <time.h>
 #include <sys/time.h>
 #include <unistd.h>
 #endif



More information about the Numpy-svn mailing list