amuse/include/switch_math.hpp

19 lines
235 B
C++
Raw Permalink Normal View History

2018-10-06 20:40:25 -07:00
#pragma once
2018-09-25 15:39:22 -07:00
/* Properly forward math defines to std:: */
#ifdef __SWITCH__
#include <cmath>
#include <cfloat>
#undef exp2
#undef log2
#undef fabs
2018-12-07 21:20:09 -08:00
namespace std {
using ::exp2;
using ::fabs;
using ::log2;
} // namespace std
2018-09-25 15:39:22 -07:00
#endif