From: Patrick Gansterer Date: Sat, 29 Mar 2014 07:05:07 +0000 (+0100) Subject: Move #define for random() into the test applications where needed X-Git-Tag: upstream/1.7.3~688 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=462c981e9c7cc2ac4e6929d0dd3e16b50a28c11f;p=platform%2Fupstream%2Flibwebsockets.git Move #define for random() into the test applications where needed --- diff --git a/test-server/test-client.c b/test-server/test-client.c index 75fd133..a3c3d4b 100644 --- a/test-server/test-client.c +++ b/test-server/test-client.c @@ -25,7 +25,9 @@ #include #include -#ifndef _WIN32 +#ifdef _WIN32 +#define random rand +#else #include #endif diff --git a/test-server/test-fraggle.c b/test-server/test-fraggle.c index 578f947..c2529df 100644 --- a/test-server/test-fraggle.c +++ b/test-server/test-fraggle.c @@ -24,7 +24,9 @@ #include #include -#ifndef _WIN32 +#ifdef _WIN32 +#define random rand +#else #include #include #endif diff --git a/win32port/win32helpers/websock-w32.h b/win32port/win32helpers/websock-w32.h index 6c74c0c..9e30456 100644 --- a/win32port/win32helpers/websock-w32.h +++ b/win32port/win32helpers/websock-w32.h @@ -14,8 +14,6 @@ #define SOL_TCP IPPROTO_TCP -#define random rand - #ifdef __MINGW64__ #define DEF_POLL_STUFF #endif