mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-28 23:02:07 +00:00
- Add popen/pclose macros for updaterevision on Windows.
This commit is contained in:
parent
e989e11f5c
commit
b9d5949825
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue