mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-28 00:33:34 +02:00
Fix ordered_dither not building on older gcc
This commit is contained in:
parent
44fe5e7793
commit
e52d62e71d
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Reference in a new issue