Skip to content

Commit

Permalink
Why does Microsoft even exist?
Browse files Browse the repository at this point in the history
  • Loading branch information
mgedmin committed Apr 25, 2019
1 parent dc261e6 commit 0597e73
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions persistent/cPersistence.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,16 @@ struct ccobject_head_struct
/*
The compiler on Windows used for Python 2.7 doesn't include
stdint.h.
The compiler on Windows used for Python 3.5 doesn't define
PRIx64 in its copy of stdint.h.
*/
#if !defined(PY3K) && defined(_WIN32)
typedef unsigned long long uint64_t;
#define PRIx64 "llx"
#else
#include <stdint.h>
# include <stdint.h>
#endif
#ifndef PRIx64 && defined(_WIN32)
# define PRIx64 "llx"
#endif

/* These two objects are initialized when the module is loaded */
Expand Down

0 comments on commit 0597e73

Please sign in to comment.