forked from old/legacy-imlib2
OS/2 binary open fix, I think in UNIX we can safely use "O_BINARY" too
SVN revision: 4119
This commit is contained in:
parent
8cb5f5dc04
commit
592c94bc6c
|
@ -42,7 +42,11 @@ load(ImlibImage *im, ImlibProgressFunction progress, char progress_granularity,
|
|||
/* already data in this image - dont load it again */
|
||||
if (im->data)
|
||||
return 0;
|
||||
#ifndef __EMX__
|
||||
fd = open(im->file, O_RDONLY);
|
||||
#else
|
||||
fd = open(im->file, O_RDONLY | O_BINARY);
|
||||
#endif
|
||||
if (fd < 0)
|
||||
return 0;
|
||||
gif = DGifOpenFileHandle(fd);
|
||||
|
|
Loading…
Reference in New Issue