diff --git a/src/lol/math/arraynd.h b/src/lol/math/arraynd.h index a73a9783..7898448f 100644 --- a/src/lol/math/arraynd.h +++ b/src/lol/math/arraynd.h @@ -26,12 +26,13 @@ #include #include +#include +#include #include namespace lol { - template class arraynd_initializer { @@ -275,5 +276,9 @@ private: template using array2d = arraynd<2, T...>; template using array3d = arraynd<3, T...>; +/* Make sure these macros exist since we use them in preprocessor tests. */ +static_assert(PTRDIFF_MAX > 0, "missing PTRDIFF_MAX"); +static_assert(INT_MAX > 0, "missing INT_MAX"); + } /* namespace lol */