summaryrefslogtreecommitdiff
path: root/numpy/distutils
diff options
context:
space:
mode:
authorhangenuit@gmail.com <hangenuit@gmail.com>2011-09-15 09:32:41 +0200
committerCharles Harris <charlesr.harris@gmail.com>2011-10-04 11:29:32 -0600
commitab2337159de0335e47d4b535fe558c7017c190bc (patch)
tree9ae39ec9717e1d72bafa3f7e7030daffc50aed3a /numpy/distutils
parenta069994282979fee21cacd079f2cf0da4bac8286 (diff)
downloadnumpy-ab2337159de0335e47d4b535fe558c7017c190bc.tar.gz
BUG: Add another preprocessor statement for 64-bits fallback mechanism.
Diffstat (limited to 'numpy/distutils')
-rw-r--r--numpy/distutils/mingw32ccompiler.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/numpy/distutils/mingw32ccompiler.py b/numpy/distutils/mingw32ccompiler.py
index 68625c6b3..3e32c6362 100644
--- a/numpy/distutils/mingw32ccompiler.py
+++ b/numpy/distutils/mingw32ccompiler.py
@@ -94,6 +94,10 @@ class Mingw32CCompiler(distutils.cygwinccompiler.CygwinCCompiler):
if build_msvcr_library() | build_msvcr_library(debug=True):
# add preprocessor statement for using customized msvcr lib
self.define_macro('NPY_MINGW_USE_CUSTOM_MSVCR')
+ # Else do a check if the current runtime version is >= VS2005
+ elif int(msvc_runtime_library().lstrip('msvcr')) >= 80:
+ # add preprocessor statement to use 64-bit fallback
+ self.define_macro('NPY_MINGW_USE_64BIT_MSVCR')
# **changes: eric jones 4/11/01
# 2. increased optimization and turned off all warnings