diff -urNp old/src/libjasper/include/jasper/jas_math.h new/src/libjasper/include/jasper/jas_math.h --- old/src/libjasper/include/jasper/jas_math.h 2017-05-31 08:25:50.832055034 +0200 +++ new/src/libjasper/include/jasper/jas_math.h 2017-05-31 08:27:47.975407832 +0200 @@ -86,6 +86,9 @@ #ifdef __cplusplus extern "C" { +#ifndef SIZE_MAX +#define SIZE_MAX ((size_t) - 1) +#endif #endif /******************************************************************************\