Use the header only version

This commit is contained in:
Andreas Fabri 2016-11-01 11:45:26 +01:00
parent 1c400420ce
commit 7ee573f1dd
2 changed files with 2 additions and 38 deletions

View File

@ -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()
{

View File

@ -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 <CGAL/Residue.h>
#include <CGAL/Modular_arithmetic/Residue_type.h>
namespace CGAL{
const double Residue::CST_CUT = std::ldexp( 3., 51 );
}
#endif