Skip to content

Commit 129860d

Browse files
committed
MSVC does not support #warning directive
1 parent d60444f commit 129860d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numpy/_core/include/numpy/numpyconfig.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
/* Sanity check the (requested) feature version */
129129
#if NPY_FEATURE_VERSION > NPY_API_VERSION
130130
#error "NPY_TARGET_VERSION higher than NumPy headers!"
131-
#elif NPY_FEATURE_VERSION < NPY_1_15_API_VERSION
131+
#elif NPY_FEATURE_VERSION < NPY_1_15_API_VERSION && !defined(_WIN32)
132132
/* No support for irrelevant old targets, no need for error, but warn. */
133133
#warning "Requested NumPy target lower than supported NumPy 1.15."
134134
#endif

0 commit comments

Comments
 (0)