diff --git a/Modular_arithmetic/include/CGAL/Modular_arithmetic/Residue_type.h b/Modular_arithmetic/include/CGAL/Modular_arithmetic/Residue_type.h index e5ddbaa6379..9280236246d 100644 --- a/Modular_arithmetic/include/CGAL/Modular_arithmetic/Residue_type.h +++ b/Modular_arithmetic/include/CGAL/Modular_arithmetic/Residue_type.h @@ -59,17 +59,13 @@ public: typedef Residue NT; private: -#ifdef CGAL_HEADER_ONLY + static const double& get_static_CST_CUT() { static const double CST_CUT = std::ldexp( 3., 51 ); return CST_CUT; } -#else // CGAL_HEADER_ONLY - CGAL_EXPORT static const double CST_CUT; - static const double& get_static_CST_CUT() - { return Residue::CST_CUT; } -#endif // CGAL_HEADER_ONLY + static int& prime_int_internal() { diff --git a/Modular_arithmetic/src/CGAL/Residue_type.cpp b/Modular_arithmetic/src/CGAL/Residue_type.cpp deleted file mode 100644 index bb9fc349b82..00000000000 --- a/Modular_arithmetic/src/CGAL/Residue_type.cpp +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Max-Planck-Institute Saarbruecken (Germany). -// All rights reserved. -// -// This file is part of CGAL (www.cgal.org); you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public License as -// published by the Free Software Foundation; either version 3 of the License, -// or (at your option) any later version. -// -// Licensees holding a valid commercial license may use this file in -// accordance with the commercial license agreement provided with the software. -// -// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE -// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. -// -// $URL$ -// $Id$ -// -// Author(s) : Michael Hemmer - -#ifndef CGAL_HEADER_ONLY - -#include -#include - -namespace CGAL{ - - -const double Residue::CST_CUT = std::ldexp( 3., 51 ); - -} - -#endif