mirror of
https://github.com/AxioDL/amuse.git
synced 2025-07-01 19:03:47 +00:00
23 lines
296 B
C++
23 lines
296 B
C++
#ifndef SWITCH_MATH_HPP
|
|
#define SWITCH_MATH_HPP
|
|
|
|
/* Properly forward math defines to std:: */
|
|
#ifdef __SWITCH__
|
|
|
|
#include <cmath>
|
|
#include <cfloat>
|
|
|
|
#undef exp2
|
|
#undef log2
|
|
#undef fabs
|
|
|
|
namespace std
|
|
{
|
|
using ::exp2;
|
|
using ::log2;
|
|
using ::fabs;
|
|
}
|
|
#endif
|
|
|
|
#endif //TEST_SWITCH_MATH_HPP
|