mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-02 06:30:38 +08:00
Describe supported platforms in README.
Better isnan/isinf availabity test(I guess).
This commit is contained in:
parent
b23f6fe492
commit
cd1ddf341d
@ -14,7 +14,13 @@ Work in process(`devel` branch). Very near to release, but need more tests and e
|
|||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
* Portable C++. C++-03 with STL dependency only.
|
* Written in portable C++. C++-03 with STL dependency only.
|
||||||
|
* [x] macOS + clang(LLVM)
|
||||||
|
* [x] iOS + clang
|
||||||
|
* [x] Linux + gcc/clang
|
||||||
|
* [x] Windows + MinGW
|
||||||
|
* [x] Android + CrystaX(NDK drop-in replacement) GCC
|
||||||
|
* [x] Web using Emscripten(LLVM)
|
||||||
* Moderate parsing time and memory consumption.
|
* Moderate parsing time and memory consumption.
|
||||||
* glTF specification v2.0.0
|
* glTF specification v2.0.0
|
||||||
* [x] ASCII glTF
|
* [x] ASCII glTF
|
||||||
|
@ -231,10 +231,13 @@ inline value::value(double n) : type_(number_type), u_() {
|
|||||||
if (
|
if (
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
!_finite(n)
|
!_finite(n)
|
||||||
#elif __cplusplus >= 201103L || !(defined(isnan) && defined(isinf))
|
#elif __cplusplus >= 201103L
|
||||||
std::isnan(n) || std::isinf(n)
|
std::isnan(n) || std::isinf(n)
|
||||||
#else
|
#elif defined(isnan) && defined(isinf)
|
||||||
isnan(n) || isinf(n)
|
isnan(n) || isinf(n)
|
||||||
|
#else
|
||||||
|
// ???. No nan&inf check
|
||||||
|
0
|
||||||
#endif
|
#endif
|
||||||
) {
|
) {
|
||||||
throw std::overflow_error("");
|
throw std::overflow_error("");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user