Skip to content

Commit

Permalink
bugfix: fixed compatibility regression with MinGW gcc. this bug had a…
Browse files Browse the repository at this point in the history
…ppeared in commit 7923c63.
  • Loading branch information
agentzh committed Apr 20, 2018
1 parent 6d4bb10 commit b982ebb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/x64/src/lj_str_hash_x64.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@
#undef LJ_AINLINE
#define LJ_AINLINE

#ifdef __MINGW32__
#define random() ((long) rand())
#define srandom(seed) srand(seed)
#endif

static const uint64_t* cast_uint64p(const char* str)
{
return (const uint64_t*)(void*)str;
Expand Down

0 comments on commit b982ebb

Please sign in to comment.