diff options
Diffstat (limited to 'coders/ps2.c')
-rw-r--r-- | coders/ps2.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/coders/ps2.c b/coders/ps2.c index ecb86ac..9d85919 100644 --- a/coders/ps2.c +++ b/coders/ps2.c @@ -1,5 +1,5 @@ /* -% Copyright (C) 2003 - 2020 GraphicsMagick Group +% Copyright (C) 2003 - 2021 GraphicsMagick Group % Copyright (C) 2002 ImageMagick Studio % Copyright 1991-1999 E. I. du Pont de Nemours and Company % @@ -62,9 +62,17 @@ static unsigned int #if defined(HasTIFF) #if defined(HAVE_TIFFCONF_H) -#include "tiffconf.h" +# include "tiffconf.h" #endif #include "tiffio.h" + +#if defined(HAVE_STDINT_H) && (TIFFLIB_VERSION >= 20201219) +# undef uint16 +# define uint16 uint16_t +# undef uint32 +# define uint32 uint32_t +#endif /* TIFFLIB_VERSION */ + /* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % |