mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 02:04:20 +00:00
* Source/tiff.m: Use type tmsize_t.
Base on patch by Marat Ibadinov <ibadinov@me.com> git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38287 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
6b0a46b215
commit
51276dc346
2 changed files with 12 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2015-01-11 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/tiff.m: Use type tmsize_t.
|
||||
Base on patch by Marat Ibadinov <ibadinov@me.com>
|
||||
|
||||
2015-01-08 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSTextView.m: Protect usages of sharedSpellChecker with
|
||||
|
|
|
@ -73,6 +73,11 @@
|
|||
#include <unistd.h> /* for L_SET, etc definitions */
|
||||
#endif /* !__WIN32__ */
|
||||
|
||||
#if !defined(tmsize_t)
|
||||
// This only got added in version 4 of libtiff, but TIFFLIB_VERSION is unusable to differentiate here
|
||||
typedef tsize_t tmsize_t;
|
||||
#endif
|
||||
|
||||
typedef struct {
|
||||
char* data;
|
||||
long size;
|
||||
|
@ -366,7 +371,7 @@ NSTiffRead(TIFF *image, NSTiffInfo *info, unsigned char *data)
|
|||
uint8* buf;
|
||||
uint8* raster;
|
||||
NSTiffColormap* map;
|
||||
int scan_line_size;
|
||||
tmsize_t scan_line_size;
|
||||
|
||||
if (data == NULL)
|
||||
return -1;
|
||||
|
@ -471,7 +476,7 @@ NSTiffWrite(TIFF *image, NSTiffInfo *info, unsigned char *data)
|
|||
int i;
|
||||
unsigned int row;
|
||||
int error = 0;
|
||||
int scan_line_size;
|
||||
tmsize_t scan_line_size;
|
||||
|
||||
TIFFSetField(image, TIFFTAG_IMAGEWIDTH, info->width);
|
||||
TIFFSetField(image, TIFFTAG_IMAGELENGTH, info->height);
|
||||
|
|
Loading…
Reference in a new issue