Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ed3450b

Browse filesBrowse files
authored
Merge pull request #27668 from charris/backport-27650
BLD: Do not set __STDC_VERSION__ to zero during build
2 parents 5e179c7 + 3b6c4da commit ed3450b
Copy full SHA for ed3450b

File tree

Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed

‎numpy/_core/meson.build

Copy file name to clipboardExpand all lines: numpy/_core/meson.build
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,6 @@ c_args_common = [
681681

682682
# Same as NPY_CXX_FLAGS (TODO: extend for what ccompiler_opt adds)
683683
cpp_args_common = c_args_common + [
684-
'-D__STDC_VERSION__=0', # for compatibility with C headers
685684
]
686685
if cc.get_argument_syntax() != 'msvc'
687686
cpp_args_common += [

‎numpy/_core/src/common/npy_atomic.h

Copy file name to clipboardExpand all lines: numpy/_core/src/common/npy_atomic.h
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99

1010
#include "numpy/npy_common.h"
1111

12-
#if __STDC_VERSION__ >= 201112L && !defined(__STDC_NO_ATOMICS__)
12+
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L \
13+
&& !defined(__STDC_NO_ATOMICS__)
1314
// TODO: support C++ atomics as well if this header is ever needed in C++
1415
#include <stdatomic.h>
1516
#include <stdint.h>

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.