From 313a6fd3ef35d0e7a3756afca013232b21eaa09b Mon Sep 17 00:00:00 2001 From: Sylvain Pion Date: Wed, 18 Aug 1999 18:13:48 +0000 Subject: [PATCH] - New file: only contains a workaround. --- Old_Packages/CLN/src/CLN.C | 52 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 Old_Packages/CLN/src/CLN.C diff --git a/Old_Packages/CLN/src/CLN.C b/Old_Packages/CLN/src/CLN.C new file mode 100644 index 00000000000..e823b14f725 --- /dev/null +++ b/Old_Packages/CLN/src/CLN.C @@ -0,0 +1,52 @@ +// ====================================================================== +// +// Copyright (c) 1999 The CGAL Consortium +// +// This software and related documentation is part of an INTERNAL release +// of the Computational Geometry Algorithms Library (CGAL). It is not +// intended for general use. +// +// ---------------------------------------------------------------------- +// +// release : +// release_date : +// +// file : src/CLN.C +// revision : $Revision$ +// revision_date : $Date$ +// package : CLN +// author(s) : Sylvain Pion +// +// coordinator : INRIA Sophia-Antipolis () +// +// ====================================================================== + +#ifdef CGAL_USE_CLN + +#include +#include + +CGAL_BEGIN_NAMESPACE + +// It's a workaround for a bug that happens on Solaris 2.6 with gcc 2.95, +// and libcln.so (not .a). +// It doesn't happen on Linux with gcc 2.95. + +// Namely, the default base for printing should be 10, but it's not +// initialized as it should for some reason... + +// So we make a static object that we initialize here instead. + +struct workaround_4_CLN +{ + workaround_4_CLN() + { + cl_default_print_flags.rational_base = 10; + } +}; + +static workaround_4_CLN w; + +CGAL_END_NAMESPACE + +#endif // CGAL_USE_CLN