From 361b42c83beffd1234e4403d0e81b2cca72f3d89 Mon Sep 17 00:00:00 2001 From: Jason Madden Date: Sat, 20 Oct 2018 09:26:31 -0500 Subject: [PATCH] Attempt to fix Windows 2.7's lack of stdint.h --- persistent/cPersistence.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/persistent/cPersistence.c b/persistent/cPersistence.c index 26e7c56..e398474 100644 --- a/persistent/cPersistence.c +++ b/persistent/cPersistence.c @@ -16,7 +16,6 @@ static char cPersistence_doc_string[] = "\n" "$Id$\n"; -#include #include "cPersistence.h" #include "structmember.h" @@ -25,6 +24,16 @@ struct ccobject_head_struct CACHE_HEAD }; +/* + The compiler on Windows used for Python 2.7 doesn't include + stdint.h. +*/ +#if !defined(PY3K) && defined(_WIN32) +typedef uint64_t unsigned long long; +#else +#include +#endif + /* These two objects are initialized when the module is loaded */ static PyObject *TimeStamp, *py_simple_new;