Fossil SCM

Fix macro redefinition compiler warnings.

mistachkin 2013-11-12 19:26 trunk
Commit 629d49752c2e1743e278a4440d7445e15fdcca68
1 file changed +5
+5
--- src/url.c
+++ src/url.c
@@ -18,14 +18,19 @@
1818
** This file contains code for parsing URLs that appear on the command-line
1919
*/
2020
#include "config.h"
2121
#include "url.h"
2222
#include <stdio.h>
23
+
2324
#ifdef _WIN32
2425
#include <io.h>
26
+#ifndef isatty
2527
#define isatty(d) _isatty(d)
28
+#endif
29
+#ifndef fileno
2630
#define fileno(s) _fileno(s)
31
+#endif
2732
#endif
2833
2934
#if INTERFACE
3035
/*
3136
** Flags for url_parse()
3237
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button