Skip to content

Commit ee7d196

Browse files
committed
Remove register macro in Ginac
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\xkeycheck.h(341): warning C4005: 'register': macro redefinition ../src/sage/symbolic/ginac/constant.cpp(23): note: see previous definition of 'register' C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\xkeycheck.h(343): fatal error C1189: #error: The C++ Standard Library forbids macroizing the keyword "register". Enable warning C4005 to find the forbidden define.
1 parent 1b3f398 commit ee7d196

File tree

6 files changed

+0
-6
lines changed

6 files changed

+0
-6
lines changed

src/sage/symbolic/ginac/constant.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
2121
*/
2222

23-
#define register
2423
#include <Python.h>
2524
#include "py_funcs.h"
2625
#include "constant.h"

src/sage/symbolic/ginac/ex.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
2121
*/
2222

23-
#define register
2423
#include <Python.h>
2524
#include "ex.h"
2625
#include "ex_utils.h"

src/sage/symbolic/ginac/fderivative.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
2121
*/
2222

23-
#define register
2423
#include <Python.h>
2524
#include "py_funcs.h"
2625
#include "fderivative.h"

src/sage/symbolic/ginac/function.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
2121
*/
2222

23-
#define register
2423
#define PY_SSIZE_T_CLEAN
2524
#include <Python.h>
2625
#include "py_funcs.h"

src/sage/symbolic/ginac/inifcns_hyperg.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
2424
*/
2525

26-
#define register
2726
#include <Python.h>
2827
#include "py_funcs.h"
2928
#include "inifcns.h"

src/sage/symbolic/ginac/numeric.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
5050
*/
5151

52-
#define register
5352
#define PY_SSIZE_T_CLEAN
5453
#include <Python.h>
5554
#include "flint/fmpz.h"

0 commit comments

Comments
 (0)