Use CGAL macros for indicating deprecated headers.

This commit is contained in:
Aymeric PELLE 2014-05-16 13:40:49 +02:00
parent b899f9f346
commit 566ad109eb
5 changed files with 11 additions and 11 deletions

View File

@ -35,11 +35,9 @@
# pragma warning(disable:4180) // qualifier applied to function type has no meaning; ignored # pragma warning(disable:4180) // qualifier applied to function type has no meaning; ignored
#endif #endif
#ifdef __GNUG__ #define CGAL_DEPRECATED_HEADER "<CGAL/Mesh_3/Implicit_to_labeled_function_wrapper.h>"
#warning deprecated : use <CGAL/Labeled_mesh_domain_3.h> instead. #define CGAL_REPLACEMENT_HEADER "<CGAL/Implicit_to_labeling_function_wrapper.h>"
#else #include <CGAL/internal/deprecation_warning.h>
#pragma message("WARNING (deprecated) : use <CGAL/Labeled_mesh_domain_3.h> instead.")
#endif
#include <vector> #include <vector>

View File

@ -26,11 +26,9 @@
#ifndef CGAL_MESH_3_LABELED_MESH_DOMAIN_3_H #ifndef CGAL_MESH_3_LABELED_MESH_DOMAIN_3_H
#define CGAL_MESH_3_LABELED_MESH_DOMAIN_3_H #define CGAL_MESH_3_LABELED_MESH_DOMAIN_3_H
#ifdef __GNUG__ #define CGAL_DEPRECATED_HEADER "<CGAL/Mesh_3/Labeled_mesh_domain_3.h>"
#warning deprecated : use <CGAL/Labeled_mesh_domain_3.h> instead. #define CGAL_REPLACEMENT_HEADER "<CGAL/Labeled_mesh_domain_3.h>"
#else #include <CGAL/internal/deprecation_warning.h>
#pragma message("WARNING (deprecated) : use <CGAL/Labeled_mesh_domain_3.h> instead.")
#endif
#include <CGAL/Mesh_3/config.h> #include <CGAL/Mesh_3/config.h>

View File

@ -1,3 +1,5 @@
#define CGAL_NO_DEPRECATION_WARNINGS 1
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h> #include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Mesh_3/Implicit_to_labeled_function_wrapper.h> #include <CGAL/Mesh_3/Implicit_to_labeled_function_wrapper.h>

View File

@ -22,11 +22,12 @@
// File Description : // File Description :
//****************************************************************************** //******************************************************************************
#define CGAL_NO_DEPRECATION_WARNINGS 1
#include "test_meshing_utilities.h" #include "test_meshing_utilities.h"
#include <CGAL/Mesh_3/Labeled_mesh_domain_3.h> #include <CGAL/Mesh_3/Labeled_mesh_domain_3.h>
#include <CGAL/Mesh_3/Implicit_to_labeled_function_wrapper.h> #include <CGAL/Mesh_3/Implicit_to_labeled_function_wrapper.h>
template <typename K> template <typename K>
struct LM3_tester struct LM3_tester
{ {

View File

@ -7,6 +7,7 @@
//****************************************************************************** //******************************************************************************
#define CGAL_NO_DEPRECATION_WARNINGS 1
#include "debug.h" #include "debug.h"
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h> #include <CGAL/Exact_predicates_inexact_constructions_kernel.h>