summaryrefslogtreecommitdiffstats
path: root/PC/config.h
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-08-25 16:07:15 (GMT)
committerGuido van Rossum <guido@python.org>1998-08-25 16:07:15 (GMT)
commit3293b07df58a875afaf3fc82c1e499af59bc99e4 (patch)
tree8f72dc01a6d24e4df800dddd1d406e966c4ea61d /PC/config.h
parent859b407cf12b0bcf6d7d56e48df765664e41e82b (diff)
downloadcpython-3293b07df58a875afaf3fc82c1e499af59bc99e4.zip
cpython-3293b07df58a875afaf3fc82c1e499af59bc99e4.tar.gz
cpython-3293b07df58a875afaf3fc82c1e499af59bc99e4.tar.bz2
Patch by Mark Hammond to support 64-bit ints on MS platforms.
The MS compiler doesn't call it 'long long', it uses __int64, so a new #define, LONG_LONG, has been added and all occurrences of 'long long' are replaced with it.
Diffstat (limited to 'PC/config.h')
-rw-r--r--PC/config.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/PC/config.h b/PC/config.h
index 0bc8cc5..495b985 100644
--- a/PC/config.h
+++ b/PC/config.h
@@ -85,6 +85,8 @@ typedef int pid_t;
#define DL_IMPORT(RTYPE) __declspec(dllexport) RTYPE
#endif
+#define HAVE_LONG_LONG 1
+#define LONG_LONG __int64
#endif /* _MSC_VER && > 850 */
#if defined(_MSC_VER) && _MSC_VER <= 850