From 55017451732f4ce3bf4239176b60db885bd07e92 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Thu, 22 Oct 2015 16:32:13 +0200 Subject: [PATCH] MSW compile fix --- src/config_win32.h | 2 -- src/video_capture/testcard.cpp | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/config_win32.h b/src/config_win32.h index f37b1815d..7ec861288 100644 --- a/src/config_win32.h +++ b/src/config_win32.h @@ -190,8 +190,6 @@ static inline char *strtok_r(char *s, const char *delimiters, char **lasts) int uname(struct utsname *); int getopt(int, char * const *, const char *); //int strncasecmp(const char *, const char*, int len); -int srandom(int); -int random(void); double drand48(); int gettimeofday(struct timeval *p, struct timezone *z); unsigned int gethostid(void); diff --git a/src/video_capture/testcard.cpp b/src/video_capture/testcard.cpp index 31565546d..b88142501 100644 --- a/src/video_capture/testcard.cpp +++ b/src/video_capture/testcard.cpp @@ -54,7 +54,6 @@ #include "config_unix.h" #include "config_win32.h" -#include "crypto/random.h" #include "debug.h" #include "host.h" #include "lib_common.h" @@ -473,7 +472,7 @@ static int vidcap_testcard_init(const struct vidcap_params *params, void **state } else if (s->pattern == image_pattern::NOISE) { uint8_t *sample = (uint8_t *) s->pixmap.data; for (int i = 0; i < pixmap_len; ++i) { - *sample++ = random() % 0xff; + *sample++ = rand() % 0xff; } } else { assert (s->pattern == image_pattern::BARS);