Move #define for random() into the test applications where needed

This commit is contained in:
Patrick Gansterer 2014-03-29 08:05:07 +01:00
parent 970e19ceaa
commit 462c981e9c
3 changed files with 6 additions and 4 deletions

View file

@ -25,7 +25,9 @@
#include <string.h>
#include <signal.h>
#ifndef _WIN32
#ifdef _WIN32
#define random rand
#else
#include <unistd.h>
#endif

View file

@ -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

View file

@ -14,8 +14,6 @@
#define SOL_TCP IPPROTO_TCP
#define random rand
#ifdef __MINGW64__
#define DEF_POLL_STUFF
#endif