tjunittest.c: Use _getpid() on Windows
This commit is contained in:
@@ -46,7 +46,9 @@
|
|||||||
#include "jconfigint.h"
|
#include "jconfigint.h"
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
#include <process.h>
|
||||||
#define random() rand()
|
#define random() rand()
|
||||||
|
#define getpid() _getpid()
|
||||||
#else
|
#else
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user