blob: c628efec95e0cd9e20339b9eed89e7ae15e93a5f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
--- contrib/python/numpy/py3/numpy/core/src/npymath/npy_math_private.h (index)
+++ contrib/python/numpy/py3/numpy/core/src/npymath/npy_math_private.h (working tree)
@@ -34,6 +34,10 @@
#include "numpy/npy_endian.h"
#include "numpy/npy_common.h"
+#ifdef _MSC_VER // windows in ucrt\math.h makes #define complex _complex
+#undef complex
+#endif
+
/*
* The original fdlibm code used statements like:
* n0 = ((*(int*)&one)>>29)^1; * index of high word *
--- contrib/python/numpy/py3/numpy/distutils/include/npy_cpu_dispatch_config.x86_64.h (index)
+++ contrib/python/numpy/py3/numpy/distutils/include/npy_cpu_dispatch_config.x86_64.h (working tree)
@@ -53,7 +53,11 @@
#ifdef NPY__CPU_TARGET_POPCNT
/** POPCNT **/
#define NPY_HAVE_POPCNT 1
+#ifdef _MSC_VER
+ #include <nmmintrin.h>
+#else
#include <popcntintrin.h>
+#endif
#endif /*NPY__CPU_TARGET_POPCNT*/
#ifdef NPY__CPU_TARGET_SSE42
/** SSE42 **/
--- contrib/python/numpy/py3/numpy/core/src/common/numpyos.c (index)
+++ contrib/python/numpy/py3/numpy/core/src/common/numpyos.c (working tree)
@@ -783,7 +783,7 @@ NumPyOS_strtoull(const char *str, char **endptr, int base)
#include <stdlib.h>
-#if _MSC_VER >= 1900
+#if _MSC_VER >= 1900 && 0
/* npy3k_compat.h uses this function in the _Py_BEGIN/END_SUPPRESS_IPH
* macros. It does not need to be defined when building using MSVC
* earlier than 14.0 (_MSC_VER == 1900).
|