mirror of
https://github.com/recp/cglm.git
synced 2026-02-17 03:39:05 +00:00
Merge pull request #378 from recp/win32_intrin
win32, simd: ensure we are on msvc when checking MSVC specific headers
This commit is contained in:
@@ -63,7 +63,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* ARM Neon */
|
/* ARM Neon */
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32) && defined(_MSC_VER)
|
||||||
/* TODO: non-ARM stuff already inported, will this be better option */
|
/* TODO: non-ARM stuff already inported, will this be better option */
|
||||||
/* # include <intrin.h> */
|
/* # include <intrin.h> */
|
||||||
|
|
||||||
|
|||||||
@@ -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