Browse files

Handle ftime mingw problem with numscons.

  • Loading branch information...
1 parent 0c66323 commit 0a96db9fb6ec83daafa77e700e7c7ef572a5ab48 @cournape cournape committed Nov 19, 2008
Showing with 6 additions and 1 deletion.
  1. +6 −1 numpy/random/SConscript
View
7 numpy/random/SConscript
@@ -1,9 +1,11 @@
-# Last Change: Thu Jun 12 06:00 PM 2008 J
+# Last Change: Wed Nov 19 09:00 PM 2008 J
# vim:syntax=python
import os
from numscons import GetNumpyEnvironment, scons_get_mathlib
+from setup import needs_mingw_ftime_workaround
+
def CheckWincrypt(context):
from copy import deepcopy
src = """\
@@ -37,6 +39,9 @@ if os.name == 'nt':
if config.CheckWincrypt:
config.env.AppendUnique(LIBS = 'Advapi32')
+if needs_mingw_ftime_workaround():
+ env.Append(CPPDEFINES=['NPY_NEEDS_MINGW_TIME_WORKAROUND'])
+
sources = [os.path.join('mtrand', x) for x in
['mtrand.c', 'randomkit.c', 'initarray.c', 'distributions.c']]

0 comments on commit 0a96db9

Please sign in to comment.