Skip to content

Commit

Permalink
Attempt to fix Windows 2.7's lack of stdint.h
Browse files Browse the repository at this point in the history
  • Loading branch information
jamadden committed Oct 20, 2018
1 parent 8e75681 commit 361b42c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion persistent/cPersistence.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ static char cPersistence_doc_string[] =
"\n"
"$Id$\n";

#include <stdint.h>
#include "cPersistence.h"
#include "structmember.h"

Expand All @@ -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 <stdint.h>
#endif

/* These two objects are initialized when the module is loaded */
static PyObject *TimeStamp, *py_simple_new;

Expand Down

0 comments on commit 361b42c

Please sign in to comment.