From d5b6a2ec3e4472dc335aa8d35141d39749c328d2 Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Sat, 26 Mar 2016 11:09:46 +0000 Subject: [PATCH] fix win32 build issues --- libvips/iofuncs/util.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libvips/iofuncs/util.c b/libvips/iofuncs/util.c index 74b4aec8..23c9cacf 100644 --- a/libvips/iofuncs/util.c +++ b/libvips/iofuncs/util.c @@ -1037,8 +1037,12 @@ vips_existsf( const char *name, ... ) } #ifdef OS_WIN32 +#ifndef popen #define popen(b,m) _popen(b,m) +#endif +#ifndef pclose #define pclose(f) _pclose(f) +#endif #endif /*OS_WIN32*/ /* Do popen(), with printf-style args. @@ -1753,6 +1757,7 @@ vips_realpath( const char *path ) } else real = g_strdup( path ); +} #endif return( real );