Skip to content

Commit

Permalink
Merge pull request numpy#21887 from matthew-brett/mingw-random-compile
Browse files Browse the repository at this point in the history
BLD: Allow GCC compile on mingw-w64-based systems
  • Loading branch information
charris authored Jul 10, 2022
2 parents d3cb799 + 467be38 commit 8b8ca09
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion numpy/random/src/mt19937/mt19937.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include <math.h>
#include <stdint.h>

#ifdef _WIN32
#if defined(_WIN32) && !defined (__MINGW32__)
#define inline __forceinline
#endif

Expand Down
2 changes: 1 addition & 1 deletion numpy/random/src/pcg64/pcg64.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@

#include <inttypes.h>

#ifdef _WIN32
#if defined(_WIN32) && !defined (__MINGW32__)
#include <stdlib.h>
#define inline __forceinline
#endif
Expand Down
2 changes: 1 addition & 1 deletion numpy/random/src/philox/philox.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ static NPY_INLINE uint64_t mulhilo64(uint64_t a, uint64_t b, uint64_t *hip) {
return (uint64_t)product;
}
#else
#if defined(_WIN32)
#if defined(_WIN32) && !defined(__MINGW32__)
#include <intrin.h>
#if defined(_WIN64) && defined(_M_AMD64)
#pragma intrinsic(_umul128)
Expand Down

0 comments on commit 8b8ca09

Please sign in to comment.