- Add popen/pclose macros for updaterevision on Windows.

This commit is contained in:
Randy Heit 2013-06-24 20:52:52 -05:00
parent e989e11f5c
commit b9d5949825

View file

@ -14,6 +14,11 @@
#include <ctype.h> #include <ctype.h>
#include <errno.h> #include <errno.h>
#ifdef _WIN32
#define popen _popen
#define pclose _pclose
#endif
// Used to strip newline characters from lines read by fgets. // Used to strip newline characters from lines read by fgets.
void stripnl(char *str) void stripnl(char *str)
{ {