summaryrefslogtreecommitdiffstats
path: root/generic/tclPort.h
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2001-10-15 10:52:39 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2001-10-15 10:52:39 (GMT)
commit858c551bc020de6fc004a92faffc8db41c3a1d8c (patch)
treec4c186ac759e62c73e0155abd682137e8b496d6b /generic/tclPort.h
parent2521b037d27be67899a7d6cae9ebe8991fb478b3 (diff)
downloadtcl-858c551bc020de6fc004a92faffc8db41c3a1d8c.zip
tcl-858c551bc020de6fc004a92faffc8db41c3a1d8c.tar.gz
tcl-858c551bc020de6fc004a92faffc8db41c3a1d8c.tar.bz2
Start of work to support more platforms (HPUX,IRIX,Win) plus some minor bug fixes
Diffstat (limited to 'generic/tclPort.h')
-rw-r--r--generic/tclPort.h22
1 files changed, 17 insertions, 5 deletions
diff --git a/generic/tclPort.h b/generic/tclPort.h
index 70281a2..acc1104 100644
--- a/generic/tclPort.h
+++ b/generic/tclPort.h
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclPort.h,v 1.5 1999/05/25 01:00:27 stanton Exp $
+ * RCS: @(#) $Id: tclPort.h,v 1.5.24.1 2001/10/15 10:52:39 dkf Exp $
*/
#ifndef _TCLPORT
@@ -22,10 +22,22 @@
# include "../win/tclWinPort.h"
#else
# if defined(MAC_TCL)
-# include "tclMacPort.h"
-# else
-# include "../unix/tclUnixPort.h"
-# endif
+# include "tclMacPort.h"
+# else
+# include "../unix/tclUnixPort.h"
+# endif
#endif
+#if !defined(TCL_WIDE_INT_IS_LONG) && !defined(LLONG_MIN)
+# ifdef LLONG_BIT
+# define LLONG_MIN ((Tcl_WideInt)(Tcl_LongAsWide(1)<<(LLONG_BIT-1)))
+# else
+/* Assume we're on a system with a 64-bit 'long long' type */
+# define LLONG_MIN ((Tcl_WideInt)(Tcl_LongAsWide(1)<<63))
+# endif
+/* Assume that if LLONG_MIN is undefined, then so is LLONG_MAX */
+# define LLONG_MAX (~LLONG_MIN)
+#endif
+
+
#endif /* _TCLPORT */