Move #define for random() into the test applications where needed
This commit is contained in:
parent
970e19ceaa
commit
462c981e9c
3 changed files with 6 additions and 4 deletions
|
@ -25,7 +25,9 @@
|
|||
#include <string.h>
|
||||
#include <signal.h>
|
||||
|
||||
#ifndef _WIN32
|
||||
#ifdef _WIN32
|
||||
#define random rand
|
||||
#else
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
|
|
|
@ -24,7 +24,9 @@
|
|||
#include <getopt.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifndef _WIN32
|
||||
#ifdef _WIN32
|
||||
#define random rand
|
||||
#else
|
||||
#include <sys/time.h>
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
|
|
@ -14,8 +14,6 @@
|
|||
|
||||
#define SOL_TCP IPPROTO_TCP
|
||||
|
||||
#define random rand
|
||||
|
||||
#ifdef __MINGW64__
|
||||
#define DEF_POLL_STUFF
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue