Fix ordered_dither not building on older gcc

This commit is contained in:
Kovid Goyal 2019-07-12 06:17:01 +05:30
parent 44fe5e7793
commit e52d62e71d
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -25,6 +25,10 @@ typedef unsigned __int8 uint8_t;
typedef unsigned __int32 uint32_t; typedef unsigned __int32 uint32_t;
#else #else
#include <stdint.h> #include <stdint.h>
// on older compilers this definition is missing
#ifndef UINT8_MAX
#define UINT8_MAX 255
#endif
#endif #endif
// Only needed for the (commented out) Indexed8 codepath // Only needed for the (commented out) Indexed8 codepath