Skip to content

Commit 80c75e3

Browse files
committed
BLD: add back stdlib.h include in pcg64.h
This seems to have been removed by accident in numpy#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]
1 parent 397b6e5 commit 80c75e3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

numpy/random/src/pcg64/pcg64.h

+4-1
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,11 @@
5252

5353
#include <inttypes.h>
5454

55-
#if defined(_WIN32) && !defined (__MINGW32__)
55+
#ifdef _WIN32
5656
#include <stdlib.h>
57+
#endif
58+
59+
#if defined(_WIN32) && !defined (__MINGW32__)
5760
#define inline __forceinline
5861
#endif
5962

0 commit comments

Comments
 (0)