mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-21 11:40:22 +00:00
MSW compile fix
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user