mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-24 20:21:49 +00:00
Use rand() instead of random(), it's more standard
Remove the random() stubs from the codebase PUBLISHED_FROM=0f56ec7dffa0af1f5061a17d8801239d6f0e32a5
This commit is contained in:
1 parent
b987df1974
commit
15643f8e67
2 files changed
+3
-17
No files matched your search
@@ -151,7 +151,6 @@
|
||||
#include <sys/stat.h>
|
||||
#include <time.h>
|
||||
|
||||
#define random() rand()
|
||||
#ifdef _MSC_VER
|
||||
#pragma comment(lib, "ws2_32.lib") /* Linking with winsock library */
|
||||
#endif
|
||||
@@ -187,7 +186,6 @@
|
||||
#else
|
||||
#define fseeko(x, y, z) fseek((x), (y), (z))
|
||||
#endif
|
||||
#define random() rand()
|
||||
typedef int socklen_t;
|
||||
#if _MSC_VER >= 1700
|
||||
#include <stdint.h>
|
||||
@@ -460,8 +458,6 @@ int asprintf(char **strp, const char *fmt, ...);
|
||||
|
||||
#endif
|
||||
|
||||
long int random(void);
|
||||
|
||||
/* TI's libc does not have stat & friends, add them. */
|
||||
#ifdef __TI_COMPILER_VERSION__
|
||||
|
||||
@@ -582,8 +578,6 @@ struct SlTimeval_t;
|
||||
int gettimeofday(struct timeval *t, void *tz);
|
||||
#endif
|
||||
|
||||
long int random(void);
|
||||
|
||||
/* TI's libc does not have stat & friends, add them. */
|
||||
#ifdef __TI_COMPILER_VERSION__
|
||||
|
||||
|
||||
Reference in new issue
Block a user