Line | |
---|
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.15 2005/05/10 18:34:47 kennykb Exp $ |
---|
14 | */ |
---|
15 | |
---|
16 | #ifndef _TCLPORT |
---|
17 | #define _TCLPORT |
---|
18 | |
---|
19 | #ifdef HAVE_TCL_CONFIG_H |
---|
20 | #include "tclConfig.h" |
---|
21 | #endif |
---|
22 | #include "tcl.h" |
---|
23 | |
---|
24 | #if defined(__WIN32__) |
---|
25 | # include "../win/tclWinPort.h" |
---|
26 | #else |
---|
27 | # include "tclUnixPort.h" |
---|
28 | #endif |
---|
29 | |
---|
30 | #if !defined(LLONG_MIN) |
---|
31 | # ifdef TCL_WIDE_INT_IS_LONG |
---|
32 | # define LLONG_MIN LONG_MIN |
---|
33 | # else |
---|
34 | # ifdef LLONG_BIT |
---|
35 | # define LLONG_MIN ((Tcl_WideInt)(Tcl_LongAsWide(1)<<(LLONG_BIT-1))) |
---|
36 | # else |
---|
37 | /* Assume we're on a system with a 64-bit 'long long' type */ |
---|
38 | # define LLONG_MIN ((Tcl_WideInt)(Tcl_LongAsWide(1)<<63)) |
---|
39 | # endif |
---|
40 | # endif |
---|
41 | /* Assume that if LLONG_MIN is undefined, then so is LLONG_MAX */ |
---|
42 | # define LLONG_MAX (~LLONG_MIN) |
---|
43 | #endif |
---|
44 | |
---|
45 | |
---|
46 | #endif /* _TCLPORT */ |
---|
Note: See
TracBrowser
for help on using the repository browser.