Fossil SCM
Fix macro redefinition compiler warnings.
Commit
629d49752c2e1743e278a4440d7445e15fdcca68
Parent
c0700615ffbbb53…
1 file changed
+5
+5
| --- src/url.c | ||
| +++ src/url.c | ||
| @@ -18,14 +18,19 @@ | ||
| 18 | 18 | ** This file contains code for parsing URLs that appear on the command-line |
| 19 | 19 | */ |
| 20 | 20 | #include "config.h" |
| 21 | 21 | #include "url.h" |
| 22 | 22 | #include <stdio.h> |
| 23 | + | |
| 23 | 24 | #ifdef _WIN32 |
| 24 | 25 | #include <io.h> |
| 26 | +#ifndef isatty | |
| 25 | 27 | #define isatty(d) _isatty(d) |
| 28 | +#endif | |
| 29 | +#ifndef fileno | |
| 26 | 30 | #define fileno(s) _fileno(s) |
| 31 | +#endif | |
| 27 | 32 | #endif |
| 28 | 33 | |
| 29 | 34 | #if INTERFACE |
| 30 | 35 | /* |
| 31 | 36 | ** Flags for url_parse() |
| 32 | 37 |
| --- src/url.c | |
| +++ src/url.c | |
| @@ -18,14 +18,19 @@ | |
| 18 | ** This file contains code for parsing URLs that appear on the command-line |
| 19 | */ |
| 20 | #include "config.h" |
| 21 | #include "url.h" |
| 22 | #include <stdio.h> |
| 23 | #ifdef _WIN32 |
| 24 | #include <io.h> |
| 25 | #define isatty(d) _isatty(d) |
| 26 | #define fileno(s) _fileno(s) |
| 27 | #endif |
| 28 | |
| 29 | #if INTERFACE |
| 30 | /* |
| 31 | ** Flags for url_parse() |
| 32 |
| --- src/url.c | |
| +++ src/url.c | |
| @@ -18,14 +18,19 @@ | |
| 18 | ** This file contains code for parsing URLs that appear on the command-line |
| 19 | */ |
| 20 | #include "config.h" |
| 21 | #include "url.h" |
| 22 | #include <stdio.h> |
| 23 | |
| 24 | #ifdef _WIN32 |
| 25 | #include <io.h> |
| 26 | #ifndef isatty |
| 27 | #define isatty(d) _isatty(d) |
| 28 | #endif |
| 29 | #ifndef fileno |
| 30 | #define fileno(s) _fileno(s) |
| 31 | #endif |
| 32 | #endif |
| 33 | |
| 34 | #if INTERFACE |
| 35 | /* |
| 36 | ** Flags for url_parse() |
| 37 |