Skip to content

Commit

Permalink
FIX: Fix imcludes for Python 3.6 on Windows
Browse files Browse the repository at this point in the history
Fix inttype inclusion to enable building on Python 3.6/Windows
  • Loading branch information
bashtage committed Jan 18, 2017
1 parent 620b678 commit 35f53bd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion randomstate/interface/pcg-64/pcg-64-shim.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#ifdef _WIN32
#include "../../src/common/inttypes.h"
#ifndef _INTTYPES
#include "../common/inttypes.h"
#endif
#define inline __forceinline
#else
#include <inttypes.h>
Expand Down
2 changes: 2 additions & 0 deletions randomstate/src/pcg/pcg32.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#ifdef _WIN32
#ifndef _INTTYPES
#include "../common/inttypes.h"
#endif
#define inline __forceinline
#else
#include <inttypes.h>
Expand Down
2 changes: 2 additions & 0 deletions randomstate/src/pcg64-compat/pcg64.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@
#define PCG64_H_INCLUDED 1

#ifdef _WIN32
#ifndef _INTTYPES
#include "../common/inttypes.h"
#endif
#define inline __forceinline
#else
#include <inttypes.h>
Expand Down

0 comments on commit 35f53bd

Please sign in to comment.