Skip to content

Commit 35f53bd

Browse files
committed
FIX: Fix imcludes for Python 3.6 on Windows
Fix inttype inclusion to enable building on Python 3.6/Windows
1 parent 620b678 commit 35f53bd

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

randomstate/interface/pcg-64/pcg-64-shim.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#ifdef _WIN32
2-
#include "../../src/common/inttypes.h"
2+
#ifndef _INTTYPES
3+
#include "../common/inttypes.h"
4+
#endif
35
#define inline __forceinline
46
#else
57
#include <inttypes.h>

randomstate/src/pcg/pcg32.h

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#ifdef _WIN32
2+
#ifndef _INTTYPES
23
#include "../common/inttypes.h"
4+
#endif
35
#define inline __forceinline
46
#else
57
#include <inttypes.h>

randomstate/src/pcg64-compat/pcg64.h

+2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@
2626
#define PCG64_H_INCLUDED 1
2727

2828
#ifdef _WIN32
29+
#ifndef _INTTYPES
2930
#include "../common/inttypes.h"
31+
#endif
3032
#define inline __forceinline
3133
#else
3234
#include <inttypes.h>

0 commit comments

Comments
 (0)