Fossil SCM
Fix the build on windows by using "_pclose" instead of "pclose".
Commit
07463fbf02a30f32beb6d3fa91cf49440f241195
Parent
c3e723e308bbd4f…
1 file changed
+1
-1
+1
-1
| --- src/shell.c | ||
| +++ src/shell.c | ||
| @@ -65,11 +65,11 @@ | ||
| 65 | 65 | #define isatty(h) _isatty(h) |
| 66 | 66 | #define access(f,m) _access((f),(m)) |
| 67 | 67 | #undef popen |
| 68 | 68 | #define popen(a,b) _popen((a),(b)) |
| 69 | 69 | #undef pclose |
| 70 | -#define pclose(x) _pclose(x) | |
| 70 | +#define pclose _pclose | |
| 71 | 71 | #else |
| 72 | 72 | /* Make sure isatty() has a prototype. |
| 73 | 73 | */ |
| 74 | 74 | extern int isatty(int); |
| 75 | 75 | #endif |
| 76 | 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(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 |