Ticket #4592: cmath.hpp

File cmath.hpp, 906 bytes (added by Joel Falcou, 12 years ago)

Fixed cmath.hpp

Line 
1// (C) Copyright John Maddock 2008.
2// Use, modification and distribution are subject to the
3// Boost Software License, Version 1.0. (See accompanying file
4// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5//
6// The aim of this header is just to include <cmath> but to do
7// so in a way that does not result in recursive inclusion of
8// the Boost TR1 components if boost/tr1/tr1/cmath is in the
9// include search path. We have to do this to avoid circular
10// dependencies:
11//
12
13#ifndef BOOST_CONFIG_CMATH
14# define BOOST_CONFIG_CMATH
15
16# ifndef BOOST_TR1_NO_RECURSION
17# define BOOST_TR1_NO_RECURSION
18# define BOOST_CONFIG_NO_CMATH_RECURSION
19# endif
20
21# if !defined(BOOST_INTEL)
22# include <cmath>
23# else
24# include <mathimf.h>
25# endif
26
27# ifdef BOOST_CONFIG_NO_CMATH_RECURSION
28# undef BOOST_TR1_NO_RECURSION
29# undef BOOST_CONFIG_NO_CMATH_RECURSION
30# endif
31
32#endif