mirror of
https://github.com/zeldaret/tp
synced 2026-06-28 03:03:14 -04:00
JAHostIO and friends (#3131)
This commit is contained in:
@@ -152,6 +152,7 @@ static const float INF = 2000000000.0f;
|
||||
#ifdef __MWERKS__
|
||||
#define MULTI_CHAR(x) (x)
|
||||
#else
|
||||
#if __cplusplus
|
||||
template <int N>
|
||||
inline constexpr unsigned long long MultiCharLiteral(const char (&buf)[N]) {
|
||||
static_assert(N - 1 >= 3 && N - 1 <= 10, "MULTI_CHAR literal must be 1-8 characters");
|
||||
@@ -163,6 +164,7 @@ static const float INF = 2000000000.0f;
|
||||
}
|
||||
#define MULTI_CHAR(x) MultiCharLiteral(#x)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// potential fakematch?
|
||||
#if DEBUG
|
||||
@@ -172,9 +174,11 @@ static const float INF = 2000000000.0f;
|
||||
#endif
|
||||
|
||||
#ifndef __MWERKS__
|
||||
#if __cplusplus
|
||||
#include <cmath>
|
||||
using std::isnan;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// Comparing a non-volatile reference type to NULL is tautological
|
||||
// and triggers a warning on modern compilers, but in some cases is
|
||||
|
||||
Reference in New Issue
Block a user