COMMON: Include <limits> by default

We discussed it in https://github.com/scummvm/scummvm/pull/3966, so
std::numeric_limits is OK to use in the ScummVM codebase.
This commit is contained in:
Eugene Sandulenko 2023-06-05 17:17:19 +02:00
parent 01bb2bc689
commit bc6b225eed
No known key found for this signature in database
GPG Key ID: 014D387312D34F08

View File

@ -137,6 +137,11 @@
// easily do that for systems which do have a <new>, since it might clash with
// the default definition otherwise!
#include <new>
// After having discussion about use of std::numeric_limits in
// https://github.com/scummvm/scummvm/pull/3966 we concluded that it is safe to
// use it as minimal STL code with low probability to bring any incompatibilities
#include <limits>
#endif
#ifndef STATIC_ASSERT