1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

curl_setup: Change fopen text macros to use 't' for MSDOS

Bug: https://github.com/bagder/curl/pull/258#issuecomment-107915198
Reported-by: Gisle Vanem
This commit is contained in:
Jay Satiro 2015-06-02 14:04:00 -04:00
parent f6af9aef7e
commit 59432503c0

View File

@ -710,7 +710,7 @@ int netware_init(void);
/* In Windows the default file mode is text but an application can override it. /* In Windows the default file mode is text but an application can override it.
Therefore we specify it explicitly. https://github.com/bagder/curl/pull/258 Therefore we specify it explicitly. https://github.com/bagder/curl/pull/258
*/ */
#if defined(WIN32) #if defined(WIN32) || defined(MSDOS)
#define FOPEN_READTEXT "rt" #define FOPEN_READTEXT "rt"
#define FOPEN_WRITETEXT "wt" #define FOPEN_WRITETEXT "wt"
#elif defined(__CYGWIN__) #elif defined(__CYGWIN__)