1/*
2 * tclPort.h --
3 *
4 *	This header file handles porting issues that occur because
5 *	of differences between systems.  It reads in platform specific
6 *	portability files.
7 *
8 * Copyright (c) 1994-1995 Sun Microsystems, Inc.
9 *
10 * See the file "license.terms" for information on usage and redistribution
11 * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
12 *
13 * RCS: @(#) $Id: tclPort.h,v 1.6.2.1 2003/04/16 23:31:46 dgp Exp $
14 */
15
16#ifndef _TCLPORT
17#define _TCLPORT
18
19#include "tcl.h"
20
21#if defined(__WIN32__)
22#   include "tclWinPort.h"
23#else
24#   if defined(MAC_TCL)
25#      include "tclMacPort.h"
26#   else
27#      include "tclUnixPort.h"
28#   endif
29#endif
30
31#if !defined(LLONG_MIN)
32#   ifdef TCL_WIDE_INT_IS_LONG
33#      define LLONG_MIN LONG_MIN
34#   else
35#      ifdef LLONG_BIT
36#         define LLONG_MIN ((Tcl_WideInt)(Tcl_LongAsWide(1)<<(LLONG_BIT-1)))
37#      else
38/* Assume we're on a system with a 64-bit 'long long' type */
39#         define LLONG_MIN ((Tcl_WideInt)(Tcl_LongAsWide(1)<<63))
40#      endif
41#   endif
42/* Assume that if LLONG_MIN is undefined, then so is LLONG_MAX */
43#   define LLONG_MAX (~LLONG_MIN)
44#endif
45
46
47#endif /* _TCLPORT */
48