Switch build fixes

This commit is contained in:
2018-09-25 15:39:22 -07:00
parent 81f0a91569
commit 9e6d97564b
8 changed files with 99 additions and 0 deletions

22
include/switch_math.hpp Normal file
View 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