summaryrefslogtreecommitdiff
path: root/numpy/random/src
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2022-09-11 07:18:30 +0200
committerChristoph Reiter <reiter.christoph@gmail.com>2022-09-11 07:22:06 +0200
commit80c75e370b77296965ed571eb3bd30b316d2efd8 (patch)
tree78a546a9664b57f14c965ad56fbbcc1d94575289 /numpy/random/src
parent397b6e51b446647839f548529d06dc80bf0a4c53 (diff)
downloadnumpy-80c75e370b77296965ed571eb3bd30b316d2efd8.tar.gz
BLD: add back stdlib.h include in pcg64.h
This seems to have been removed by accident in #21887 stdlib.h is required for _rotr64() further down. Fixes: error: call to undeclared function '_rotr64'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
Diffstat (limited to 'numpy/random/src')
-rw-r--r--numpy/random/src/pcg64/pcg64.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/numpy/random/src/pcg64/pcg64.h b/numpy/random/src/pcg64/pcg64.h
index 96ee7af85..b33a39fc6 100644
--- a/numpy/random/src/pcg64/pcg64.h
+++ b/numpy/random/src/pcg64/pcg64.h
@@ -52,8 +52,11 @@
#include <inttypes.h>
-#if defined(_WIN32) && !defined (__MINGW32__)
+#ifdef _WIN32
#include <stdlib.h>
+#endif
+
+#if defined(_WIN32) && !defined (__MINGW32__)
#define inline __forceinline
#endif