Skip to content

Commit

Permalink
Remove register macro in Ginac
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tobiasdiez committed Nov 3, 2024
1 parent 1b3f398 commit ee7d196
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/sage/symbolic/ginac/constant.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#define register
#include <Python.h>
#include "py_funcs.h"
#include "constant.h"
Expand Down
1 change: 0 additions & 1 deletion src/sage/symbolic/ginac/ex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#define register
#include <Python.h>
#include "ex.h"
#include "ex_utils.h"
Expand Down
1 change: 0 additions & 1 deletion src/sage/symbolic/ginac/fderivative.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#define register
#include <Python.h>
#include "py_funcs.h"
#include "fderivative.h"
Expand Down
1 change: 0 additions & 1 deletion src/sage/symbolic/ginac/function.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#define register
#define PY_SSIZE_T_CLEAN
#include <Python.h>
#include "py_funcs.h"
Expand Down
1 change: 0 additions & 1 deletion src/sage/symbolic/ginac/inifcns_hyperg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#define register
#include <Python.h>
#include "py_funcs.h"
#include "inifcns.h"
Expand Down
1 change: 0 additions & 1 deletion src/sage/symbolic/ginac/numeric.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#define register
#define PY_SSIZE_T_CLEAN
#include <Python.h>
#include "flint/fmpz.h"
Expand Down

0 comments on commit ee7d196

Please sign in to comment.