mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix ordered_dither not building on older gcc
This commit is contained in:
parent
44fe5e7793
commit
e52d62e71d
@ -25,6 +25,10 @@ typedef unsigned __int8 uint8_t;
|
||||
typedef unsigned __int32 uint32_t;
|
||||
#else
|
||||
#include <stdint.h>
|
||||
// on older compilers this definition is missing
|
||||
#ifndef UINT8_MAX
|
||||
#define UINT8_MAX 255
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// Only needed for the (commented out) Indexed8 codepath
|
||||
|
Loading…
x
Reference in New Issue
Block a user