mirror of
https://github.com/AxioDL/amuse.git
synced 2025-12-10 14:07:48 +00:00
Switch build fixes
This commit is contained in:
22
include/switch_math.hpp
Normal file
22
include/switch_math.hpp
Normal file
@@ -0,0 +1,22 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user