mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-29 19:40:35 +00:00
NO_STD_HYPOT to prevent compilation errors when there is no std::hypot
This commit is contained in:
parent
ae85b59530
commit
1c8aa41965
9
hyper.h
9
hyper.h
@ -50,15 +50,11 @@ using std::isfinite;
|
||||
using std::isnan;
|
||||
using std::log;
|
||||
using std::exp;
|
||||
using std::hypot;
|
||||
using std::sin;
|
||||
using std::cos;
|
||||
using std::sinh;
|
||||
using std::asinh;
|
||||
using std::asin;
|
||||
using std::acos;
|
||||
using std::asinh;
|
||||
using std::acosh;
|
||||
using std::tan;
|
||||
using std::atan;
|
||||
using std::atan2;
|
||||
@ -67,6 +63,11 @@ using std::sqrt;
|
||||
using std::pow;
|
||||
using std::floor;
|
||||
using std::ceil;
|
||||
#ifndef ANDROID
|
||||
using std::hypot;
|
||||
using std::asinh;
|
||||
using std::acosh;
|
||||
#endif
|
||||
|
||||
// genus (in grammar)
|
||||
#define GEN_M 0
|
||||
|
@ -21,6 +21,7 @@
|
||||
#define CAP_SHADER 1
|
||||
#define CAP_VERTEXBUFFER 0
|
||||
#define CAP_TIMEOFDAY 1
|
||||
#define NO_STD_HYPOT
|
||||
|
||||
#define HNEW 1
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user