File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
numpy/_core/include/numpy Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 128
128
/* Sanity check the (requested) feature version */
129
129
#if NPY_FEATURE_VERSION > NPY_API_VERSION
130
130
#error "NPY_TARGET_VERSION higher than NumPy headers!"
131
- #elif NPY_FEATURE_VERSION < NPY_1_15_API_VERSION && !defined( _WIN32 )
131
+ #elif NPY_FEATURE_VERSION < NPY_1_15_API_VERSION
132
132
/* No support for irrelevant old targets, no need for error, but warn. */
133
- #warning "Requested NumPy target lower than supported NumPy 1.15."
133
+ #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
134
141
#endif
135
142
136
143
/*
You can’t perform that action at this time.
0 commit comments