Fossil SCM

Fix the build on windows by using "_pclose" instead of "pclose".

drh 2013-06-29 15:41 trunk
Commit 07463fbf02a30f32beb6d3fa91cf49440f241195
1 file changed +1 -1
+1 -1
--- src/shell.c
+++ src/shell.c
@@ -65,11 +65,11 @@
6565
#define isatty(h) _isatty(h)
6666
#define access(f,m) _access((f),(m))
6767
#undef popen
6868
#define popen(a,b) _popen((a),(b))
6969
#undef pclose
70
-#define pclose(x) _pclose(x)
70
+#define pclose _pclose
7171
#else
7272
/* Make sure isatty() has a prototype.
7373
*/
7474
extern int isatty(int);
7575
#endif
7676
--- src/shell.c
+++ src/shell.c
@@ -65,11 +65,11 @@
65 #define isatty(h) _isatty(h)
66 #define access(f,m) _access((f),(m))
67 #undef popen
68 #define popen(a,b) _popen((a),(b))
69 #undef pclose
70 #define pclose(x) _pclose(x)
71 #else
72 /* Make sure isatty() has a prototype.
73 */
74 extern int isatty(int);
75 #endif
76
--- src/shell.c
+++ src/shell.c
@@ -65,11 +65,11 @@
65 #define isatty(h) _isatty(h)
66 #define access(f,m) _access((f),(m))
67 #undef popen
68 #define popen(a,b) _popen((a),(b))
69 #undef pclose
70 #define pclose _pclose
71 #else
72 /* Make sure isatty() has a prototype.
73 */
74 extern int isatty(int);
75 #endif
76

Keyboard Shortcuts

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