File tree Expand file tree Collapse file tree
numpy/core/src/multiarray Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55#include "dtypemeta.h"
66
77
8+ #ifdef __cplusplus
9+ extern "C" {
10+ #endif
11+
812/*
913 * These are mainly needed for value based promotion in ufuncs. It
1014 * may be necessary to make them (partially) public, to allow user-defined
@@ -70,4 +74,8 @@ npy_mark_tmp_array_if_pyscalar(
7074 return 0 ;
7175}
7276
77+ #ifdef __cplusplus
78+ }
79+ #endif
80+
7381#endif /* NUMPY_CORE_SRC_MULTIARRAY_ABSTRACTDTYPES_H_ */
Original file line number Diff line number Diff line change 55#ifndef NUMPY_CORE_SRC_MULTIARRAY_ARRAYOBJECT_H_
66#define NUMPY_CORE_SRC_MULTIARRAY_ARRAYOBJECT_H_
77
8+ #ifdef __cplusplus
9+ extern "C" {
10+ #endif
11+
812extern NPY_NO_EXPORT npy_bool numpy_warn_if_no_mem_policy ;
913
1014NPY_NO_EXPORT PyObject *
@@ -51,4 +55,8 @@ static const int NPY_ARRAY_WAS_PYTHON_COMPLEX = (1 << 28);
5155static const int NPY_ARRAY_WAS_INT_AND_REPLACED = (1 << 27 );
5256static const int NPY_ARRAY_WAS_PYTHON_LITERAL = (1 << 30 | 1 << 29 | 1 << 28 );
5357
58+ #ifdef __cplusplus
59+ }
60+ #endif
61+
5462#endif /* NUMPY_CORE_SRC_MULTIARRAY_ARRAYOBJECT_H_ */
You can’t perform that action at this time.
0 commit comments