Mercurial > hg > piper-cpp
changeset 109:c996610b8a46
Win32 build fix
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Mon, 24 Oct 2016 10:51:21 +0100 |
parents | 2586f4be738c |
children | 535ee33eb8b3 |
files | vamp-server/server.cpp |
diffstat | 1 files changed, 8 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/vamp-server/server.cpp Thu Oct 20 18:33:36 2016 +0100 +++ b/vamp-server/server.cpp Mon Oct 24 10:51:21 2016 +0100 @@ -13,7 +13,14 @@ #include <map> #include <set> -#include <unistd.h> // getpid for logging +// pid for logging +#ifdef _WIN32 +#include <process.h> +static int pid = _getpid(); +#else +#include <unistd.h> +static int pid = getpid(); +#endif using namespace std; using namespace piper_vamp; @@ -24,8 +31,6 @@ // - Use Vamp C API (vamp.h) directly rather than converting to C++ //!!! Doing the above for process() and finish() alone would be a good start -static int pid = getpid(); - void usage() { string myname = "piper-vamp-server";