mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
Marco G. Salvagno's OS/2 changes
This commit is contained in:
parent
ff3fd842d8
commit
f9a839d906
@ -879,6 +879,13 @@ int main(int argc, char *argv[])
|
|||||||
int i;
|
int i;
|
||||||
|
|
||||||
outs.stream = stdout;
|
outs.stream = stdout;
|
||||||
|
#ifdef __EMX__
|
||||||
|
/* 20000318 mgs
|
||||||
|
* we call _fsetmode to fix the problem with fwrite converting newline
|
||||||
|
* characters (you get mangled text files, and corrupted binary files when
|
||||||
|
* you download to stdout and redirect it to a file). */
|
||||||
|
_fsetmode(stdout, "b");
|
||||||
|
#endif
|
||||||
|
|
||||||
memset(&config, 0, sizeof(struct Configurable));
|
memset(&config, 0, sizeof(struct Configurable));
|
||||||
|
|
||||||
|
10
src/setup.h
10
src/setup.h
@ -82,10 +82,20 @@ int fileno( FILE *stream);
|
|||||||
#define DIR_CHAR "\\"
|
#define DIR_CHAR "\\"
|
||||||
#define DOT_CHAR "_"
|
#define DOT_CHAR "_"
|
||||||
#else
|
#else
|
||||||
|
#ifdef __EMX__
|
||||||
|
/* 20000318 mgs
|
||||||
|
* OS/2 supports leading dots in filenames if the volume is formatted
|
||||||
|
* with JFS or HPFS. */
|
||||||
|
#define PATH_CHAR ";"
|
||||||
|
#define DIR_CHAR "\\"
|
||||||
|
#define DOT_CHAR "."
|
||||||
|
#else
|
||||||
|
|
||||||
#define PATH_CHAR ":"
|
#define PATH_CHAR ":"
|
||||||
#define DIR_CHAR "/"
|
#define DIR_CHAR "/"
|
||||||
#define DOT_CHAR "."
|
#define DOT_CHAR "."
|
||||||
|
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* __SETUP_H */
|
#endif /* __SETUP_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user