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 63abb04 + ff8be0c commit 65d5b86Copy full SHA for 65d5b86
numpy/_core/meson.build
@@ -681,7 +681,6 @@ c_args_common = [
681
682
# Same as NPY_CXX_FLAGS (TODO: extend for what ccompiler_opt adds)
683
cpp_args_common = c_args_common + [
684
- '-D__STDC_VERSION__=0', # for compatibility with C headers
685
]
686
if cc.get_argument_syntax() != 'msvc'
687
cpp_args_common += [
numpy/_core/src/common/npy_atomic.h
@@ -9,7 +9,8 @@
9
10
#include "numpy/npy_common.h"
11
12
-#if __STDC_VERSION__ >= 201112L && !defined(__STDC_NO_ATOMICS__)
+#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L \
13
+ && !defined(__STDC_NO_ATOMICS__)
14
// TODO: support C++ atomics as well if this header is ever needed in C++
15
#include <stdatomic.h>
16
#include <stdint.h>
0 commit comments