diff options
Diffstat (limited to 'src/interfaces/odbc/gpps.c')
-rw-r--r-- | src/interfaces/odbc/gpps.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/interfaces/odbc/gpps.c b/src/interfaces/odbc/gpps.c index 5cb4502c186..38a2e49928b 100644 --- a/src/interfaces/odbc/gpps.c +++ b/src/interfaces/odbc/gpps.c @@ -97,10 +97,18 @@ GetPrivateProfileString(char *theSection, // section name /* This code makes it so that a file in the users home dir * overrides a the "default" file as passed in */ +#ifndef __CYGWIN32__ aFile = (FILE*)(buf ? fopen(buf, "r") : NULL); +#else + aFile = (FILE*)(buf ? fopen(buf, "rb") : NULL); +#endif if(!aFile) { sprintf(buf,"%s",theIniFileName); +#ifndef __CYGWIN32__ aFile = (FILE*)(buf ? fopen(buf, "r") : NULL); +#else + aFile = (FILE*)(buf ? fopen(buf, "rb") : NULL); +#endif } |