We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f64e2da + 863f151 commit cc9f8aaCopy full SHA for cc9f8aa
numpy/_core/include/numpy/numpyconfig.h
@@ -130,7 +130,14 @@
130
#error "NPY_TARGET_VERSION higher than NumPy headers!"
131
#elif NPY_FEATURE_VERSION < NPY_1_15_API_VERSION
132
/* No support for irrelevant old targets, no need for error, but warn. */
133
- #warning "Requested NumPy target lower than supported NumPy 1.15."
+ #ifndef _MSC_VER
134
+ #warning "Requested NumPy target lower than supported NumPy 1.15."
135
+ #else
136
+ #define _WARN___STR2__(x) #x
137
+ #define _WARN___STR1__(x) _WARN___STR2__(x)
138
+ #define _WARN___LOC__ __FILE__ "(" _WARN___STR1__(__LINE__) ") : Warning Msg: "
139
+ #pragma message(_WARN___LOC__"Requested NumPy target lower than supported NumPy 1.15.")
140
+ #endif
141
#endif
142
143
/*
0 commit comments