96ec1ef
Fixes this warning:
96ec1ef
96ec1ef
/builddir/build/BUILD/polymake-4.5/include/core/polymake/internal/AVL.h:52:6: warning: type ‘pm::AVL::Ptr_flags’ violates the C++ One Definition Rule [-Wodr]
96ec1ef
   52 | enum Ptr_flags : size_t {
96ec1ef
      |      ^
96ec1ef
/builddir/build/BUILD/polymake-4.5/include/core/polymake/internal/AVL.h:52:6: note: an enum with different value name is defined in another translation unit
96ec1ef
   52 | enum Ptr_flags : size_t {
96ec1ef
      |      ^
96ec1ef
/builddir/build/BUILD/polymake-4.5/include/core/polymake/internal/AVL.h:53:4: note: name ‘NONE’ differs from name ‘END_RING’ defined in another translation unit
96ec1ef
   53 |    NONE=0,
96ec1ef
      |    ^
96ec1ef
/builddir/build/BUILD/polymake-4.5/include/core/polymake/internal/AVL.h:53:4: note: mismatching definition
96ec1ef
   53 |    NONE=0,
96ec1ef
      |    ^
96ec1ef
96ec1ef
--- lib/core/include/internal/AVL.h.orig	2021-09-29 06:13:35.000000000 -0600
96ec1ef
+++ lib/core/include/internal/AVL.h	2021-10-04 06:41:35.414976853 -0600
96ec1ef
@@ -33,6 +33,9 @@
96ec1ef
 #include <algorithm>
96ec1ef
 #include <cassert>
96ec1ef
 
96ec1ef
+// Avoid name clash with Singular
96ec1ef
+#undef NONE
96ec1ef
+
96ec1ef
 namespace pm {
96ec1ef
 
96ec1ef
 /// special tags for find_nearest denoting the first and last occurrence of a given key in a multi-set