mirror of
https://github.com/recp/cglm.git
synced 2025-10-04 17:09:40 +00:00
win32, tests: fix drand48() error on mingw
This commit is contained in:
@@ -145,7 +145,7 @@ typedef struct test_entry_t {
|
|||||||
} \
|
} \
|
||||||
} while(0);
|
} while(0);
|
||||||
|
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32) || defined(__MINGW32__) || defined(__MINGW64__)
|
||||||
# define drand48() ((float)(rand() / (RAND_MAX + 1.0)))
|
# define drand48() ((float)(rand() / (RAND_MAX + 1.0)))
|
||||||
# define OK_TEXT "ok:"
|
# define OK_TEXT "ok:"
|
||||||
# define FAIL_TEXT "fail:"
|
# define FAIL_TEXT "fail:"
|
||||||
|
Reference in New Issue
Block a user