summaryrefslogtreecommitdiffstats
path: root/acconfig.h
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-06-29 20:44:47 (GMT)
committerFred Drake <fdrake@acm.org>2000-06-29 20:44:47 (GMT)
commita3f6e91307fa45c5eb88c3dd7c573ba5ad7df199 (patch)
treef8130efa42c7c36432e6e1c6f791657143823a97 /acconfig.h
parentd04038d9d2f7950d533a33d6c01b7911f90c0c2a (diff)
downloadcpython-a3f6e91307fa45c5eb88c3dd7c573ba5ad7df199.zip
cpython-a3f6e91307fa45c5eb88c3dd7c573ba5ad7df199.tar.gz
cpython-a3f6e91307fa45c5eb88c3dd7c573ba5ad7df199.tar.bz2
This patch extends PC/config.h and configure.in as appropriate for
64-bit readiness (the config values are needed for patches that I will be submitting later today. The changes are as follows: - add SIZEOF_OFF_T #define's to PC/config.h (it was already in configure.in) - add SIZEOF_TIME_T #define to PC/config.h and configure Needed for some buffer overflow checking because sizeof(time_t) is different on Win64. - add SIZEOF_FPOS_T #define Needed for the Win64 large file support implementation. - add SIZEOF_HKEY in PC/config.h only Needed for proper Win32 vs. Win64 handling in PC/winreg.c - #define HAVE_LARGEFILE_SUPPORT for Win64 - typedef long intptr_t; for all Windows except Win64 (which defines it itself) This is a new ANSI (I think) type that is useful (and used by me) for proper handling in msvcrtmodule.c and posixmodule.c - indent the nested #ifdef's and #defines in PC/config.h This is *so* much more readable. There cannot be a compiler compatibilty issue here can there? Perl uses indented #defines and it compiles with everything.
Diffstat (limited to 'acconfig.h')
-rw-r--r--acconfig.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/acconfig.h b/acconfig.h
index 8192aef..3c07ebc 100644
--- a/acconfig.h
+++ b/acconfig.h
@@ -151,6 +151,9 @@
/* The number of bytes in an off_t. */
#undef SIZEOF_OFF_T
+/* The number of bytes in a time_t. */
+#undef SIZEOF_TIME_T
+
/* Defined to enable large file support when an off_t is bigger than a long
and long long is available and at least as big as an off_t. You may need
to add some flags for configuration and compilation to enable this mode.