From 083fe3eac63a74aa4736c47a4fd34cf6ce9d8b4a Mon Sep 17 00:00:00 2001 From: Guillaume Damiand Date: Mon, 31 Oct 2016 14:04:55 -0400 Subject: [PATCH] Define macro to use old cmap api and to remove deprecated warning in .cpp instead of in .h --- .../corefinement/Combinatorial_map_for_corefinement.h | 4 ---- .../Operations_on_polyhedra/Clip_polyhedron_plugin.cpp | 3 +++ .../Plugins/Operations_on_polyhedra/Corefinement_plugin.cpp | 3 +++ .../Operations_on_polyhedra/Scene_combinatorial_map_item.cpp | 3 +++ 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/Operations_on_polyhedra/include/CGAL/internal/corefinement/Combinatorial_map_for_corefinement.h b/Operations_on_polyhedra/include/CGAL/internal/corefinement/Combinatorial_map_for_corefinement.h index 9c92f297c62..5b15c6c2cb3 100644 --- a/Operations_on_polyhedra/include/CGAL/internal/corefinement/Combinatorial_map_for_corefinement.h +++ b/Operations_on_polyhedra/include/CGAL/internal/corefinement/Combinatorial_map_for_corefinement.h @@ -21,9 +21,6 @@ #ifndef CGAL_INTERNAL_COMBINATORIAL_MAP_FOR_COREFINEMENT_H #define CGAL_INTERNAL_COMBINATORIAL_MAP_FOR_COREFINEMENT_H -#define CGAL_CMAP_DART_DEPRECATED 1 -#define CGAL_NO_DEPRECATION_WARNINGS 1 - #include #include #include @@ -113,5 +110,4 @@ public: } } //namespace CGAL::internal_IOP -#undef CGAL_NO_DEPRECATION_WARNINGS #endif //CGAL_INTERNAL_COMBINATORIAL_MAP_FOR_COREFINEMENT_H diff --git a/Polyhedron/demo/Polyhedron/Plugins/Operations_on_polyhedra/Clip_polyhedron_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/Operations_on_polyhedra/Clip_polyhedron_plugin.cpp index 060bf93b19c..590252949a8 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/Operations_on_polyhedra/Clip_polyhedron_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/Operations_on_polyhedra/Clip_polyhedron_plugin.cpp @@ -1,3 +1,6 @@ +#define CGAL_NO_DEPRECATION_WARNINGS 1 +#define CGAL_CMAP_DART_DEPRECATED 1 + #include "Messages_interface.h" #include #include diff --git a/Polyhedron/demo/Polyhedron/Plugins/Operations_on_polyhedra/Corefinement_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/Operations_on_polyhedra/Corefinement_plugin.cpp index 085d5f630d3..1761dcadaca 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/Operations_on_polyhedra/Corefinement_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/Operations_on_polyhedra/Corefinement_plugin.cpp @@ -1,3 +1,6 @@ +#define CGAL_NO_DEPRECATION_WARNINGS 1 +#define CGAL_CMAP_DART_DEPRECATED 1 + #define CGAL_COREFINEMENT_DO_REPORT_SELF_INTERSECTIONS #include #include diff --git a/Polyhedron/demo/Polyhedron/Plugins/Operations_on_polyhedra/Scene_combinatorial_map_item.cpp b/Polyhedron/demo/Polyhedron/Plugins/Operations_on_polyhedra/Scene_combinatorial_map_item.cpp index 284e7334854..f6b5bb7d3c4 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/Operations_on_polyhedra/Scene_combinatorial_map_item.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/Operations_on_polyhedra/Scene_combinatorial_map_item.cpp @@ -1,3 +1,6 @@ +#define CGAL_NO_DEPRECATION_WARNINGS 1 +#define CGAL_CMAP_DART_DEPRECATED 1 + #include "Scene_combinatorial_map_item.h" #include "Scene_polyhedron_item.h" #include