_O_BINARY exists only on windows

SVN revision: 31553
This commit is contained in:
doursse 2007-08-27 11:28:30 +00:00 committed by doursse
parent b50328b469
commit 31618541b7
1 changed files with 5 additions and 1 deletions

View File

@ -706,7 +706,11 @@ compile(void)
free(def);
*/
}
fd = open(file_in, O_RDONLY | _O_BINARY);
#ifdef _WIN32
fd = open(file_in, _O_RDONLY | _O_BINARY);
#else
fd = open(file_in, O_RDONLY);
#endif /* _WIN32 */
if (fd < 0)
{
fprintf(stderr, "%s: Error. cannot open file \"%s\" for input. %s\n",