Skip to content

Commit

Permalink
Merge pull request #378 from recp/win32_intrin
Browse files Browse the repository at this point in the history
win32, simd: ensure we are on msvc when checking MSVC specific headers
  • Loading branch information
recp authored Jan 7, 2024
2 parents 34f0d59 + a682b9e commit 4b93cb3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/cglm/simd/intrin.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
#endif

/* ARM Neon */
#if defined(_WIN32)
#if defined(_WIN32) && defined(_MSC_VER)
/* TODO: non-ARM stuff already inported, will this be better option */
/* # include <intrin.h> */

Expand Down
2 changes: 1 addition & 1 deletion test/include/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ typedef struct test_entry_t {
} \
} while(0);

#if defined(_WIN32)
#if defined(_WIN32) || defined(__MINGW32__) || defined(__MINGW64__)
# define drand48() ((float)(rand() / (RAND_MAX + 1.0)))
# define OK_TEXT "ok:"
# define FAIL_TEXT "fail:"
Expand Down

0 comments on commit 4b93cb3

Please sign in to comment.