diff --git a/code/AssimpPCH.h b/code/AssimpPCH.h index ed0fb9db9..9a365d7c0 100644 --- a/code/AssimpPCH.h +++ b/code/AssimpPCH.h @@ -147,4 +147,14 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include "qnan.h" +// We need those constants, workaround for any platforms where nobody defined them yet +#if (!defined SIZE_MAX) +# define SIZE_MAX (~((size_t)0)) +#endif + +#if (!defined UINT_MAX) +# define UINT_MAX (~((unsigned int)0)) +#endif + + #endif // !! ASSIMP_PCH_INCLUDED