Mercurial > hg > piper-cpp
changeset 110:535ee33eb8b3
Merge
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Mon, 24 Oct 2016 17:54:37 +0100 |
parents | 247d8d533a9c (current diff) c996610b8a46 (diff) |
children | d74dfc11927c |
files | |
diffstat | 1 files changed, 8 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/vamp-server/server.cpp Mon Oct 24 17:53:33 2016 +0100 +++ b/vamp-server/server.cpp Mon Oct 24 17:54:37 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";