summaryrefslogtreecommitdiffstats
path: root/generic/tclAlloc.c
diff options
context:
space:
mode:
authormdejong <mdejong>2001-07-17 02:01:23 (GMT)
committermdejong <mdejong>2001-07-17 02:01:23 (GMT)
commitb8bb94671e8999fad9dd12e9a182bafb1f030c19 (patch)
tree2cad859a856b37e33dff04b960c188aecb4b7b67 /generic/tclAlloc.c
parent69695c3c8e2ec08c505eb65ef119b3bb808dd79e (diff)
downloadtcl-b8bb94671e8999fad9dd12e9a182bafb1f030c19.zip
tcl-b8bb94671e8999fad9dd12e9a182bafb1f030c19.tar.gz
tcl-b8bb94671e8999fad9dd12e9a182bafb1f030c19.tar.bz2
* generic/tcl.h: Define __WIN32__ when
__CYGWIN__ or __MINGW32__ is defined. * generic/tclAlloc.c: Define caddr_t when compiling with VC++ or mingw. This type is already defined when compiling with Cygwin.
Diffstat (limited to 'generic/tclAlloc.c')
-rw-r--r--generic/tclAlloc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/generic/tclAlloc.c b/generic/tclAlloc.c
index cbeadda..e40fa34 100644
--- a/generic/tclAlloc.c
+++ b/generic/tclAlloc.c
@@ -15,7 +15,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclAlloc.c,v 1.9 2000/04/21 04:04:12 hobbs Exp $
+ * RCS: @(#) $Id: tclAlloc.c,v 1.10 2001/07/17 02:01:23 mdejong Exp $
*/
#include "tclInt.h"
@@ -30,9 +30,10 @@
#endif
/*
- * On Unix this will already be defined
+ * We should really make use of AC_CHECK_TYPE(caddr_t)
+ * here, but it can wait until Tcl uses config.h properly.
*/
-#if defined(WIN32) || defined(MAC_TCL)
+#if defined(MAC_TCL) || defined(_MSC_VER) || defined(__MINGW32__)
typedef unsigned long caddr_t;
#endif