OS/2 binary open fix, I think in UNIX we can safely use "O_BINARY" too

SVN revision: 4119
This commit is contained in:
Platon Fomichev 2001-01-14 19:43:54 +00:00
parent 8cb5f5dc04
commit 592c94bc6c
1 changed files with 4 additions and 0 deletions

View File

@ -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);