diff --git a/src/compat.h b/src/compat.h index 5ae1d67..ade4d70 100644 --- a/src/compat.h +++ b/src/compat.h @@ -35,7 +35,7 @@ /* Sometimes defined through . */ #ifndef SIZE_T_MAX -# define SIZE_T_MAX UINT_MAX +# define SIZE_T_MAX ((size_t)-1) #endif /* !SIZE_T_MAX */ #ifdef WIN32