8000 BLD: python 3.x compile fix · numpy/numpy@2eeddab · GitHub
[go: up one dir, main page]

Skip to content

Commit 2eeddab

Browse files
ovillellaspv
ovillellas
authored andcommitted
BLD: python 3.x compile fix
1 parent f48c134 commit 2eeddab

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

numpy/core/src/umath/umath_linalg.c.src

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include <math.h>
2222

2323

24-
const char* umath_linalg_version_string = "0.1.2";
24+
const char* umath_linalg_version_string = "0.1.3";
2525

2626
/*
2727
****************************************************************************
@@ -370,7 +370,7 @@ offset_ptr(void* ptr, ptrdiff_t offset)
370370
*****************************************************************************
371371
*/
372372

373-
static const char* umath_linalg_module_name = "_umath_linalg";
373+
#define UMATH_LINALG_MODULE_NAME "_umath_linalg"
374374

375375
typedef union {
376376
fortran_complex f;
@@ -4158,7 +4158,7 @@ static PyMethodDef UMath_LinAlgMethods[] = {
41584158
#if defined(NPY_PY3K)
41594159
static struct PyModuleDef moduledef = {
41604160
PyModuleDef_HEAD_INIT,
4161-
umath_linalg_module_name,
4161+
UMATH_LINALG_MODULE_NAME,
41624162
NULL,
41634163
-1,
41644164
UMath_TestsMethods,
@@ -4186,7 +4186,7 @@ init_umath_linalg(void)
41864186
#if defined(NPY_PY3K)
41874187
m = PyModule_Create(&moduledef);
41884188
#else
4189-
m = Py_InitModule(umath_linalg_module_name, UMath_LinAlgMethods);
4189+
m = Py_InitModule(UMATH_LINALG_MODULE_NAME, UMath_LinAlgMethods);
41904190
#endif
41914191
if (m == NULL)
41924192
return RETVAL;

0 commit comments

Comments
 (0)
0