tclPort.h

Go to the documentation of this file.
00001 /*
00002  * tclPort.h --
00003  *
00004  *      This header file handles porting issues that occur because
00005  *      of differences between systems.  It reads in platform specific
00006  *      portability files.
00007  *
00008  * Copyright (c) 1994-1995 Sun Microsystems, Inc.
00009  *
00010  * See the file "license.terms" for information on usage and redistribution
00011  * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
00012  *
00013  * RCS: @(#) $Id: tclPort.h,v 1.15 2005/05/10 18:34:47 kennykb Exp $
00014  */
00015 
00016 #ifndef _TCLPORT
00017 #define _TCLPORT
00018 
00019 #ifdef HAVE_TCL_CONFIG_H
00020 #include "tclConfig.h"
00021 #endif
00022 #include "tcl.h"
00023 
00024 #if defined(__WIN32__)
00025 #   include "../win/tclWinPort.h"
00026 #else
00027 #   include "tclUnixPort.h"
00028 #endif
00029 
00030 #if !defined(LLONG_MIN)
00031 #   ifdef TCL_WIDE_INT_IS_LONG
00032 #      define LLONG_MIN LONG_MIN
00033 #   else
00034 #      ifdef LLONG_BIT
00035 #         define LLONG_MIN ((Tcl_WideInt)(Tcl_LongAsWide(1)<<(LLONG_BIT-1)))
00036 #      else
00037 /* Assume we're on a system with a 64-bit 'long long' type */
00038 #         define LLONG_MIN ((Tcl_WideInt)(Tcl_LongAsWide(1)<<63))
00039 #      endif
00040 #   endif
00041 /* Assume that if LLONG_MIN is undefined, then so is LLONG_MAX */
00042 #   define LLONG_MAX (~LLONG_MIN)
00043 #endif
00044 
00045 
00046 #endif /* _TCLPORT */



Generated on Wed Mar 12 12:18:20 2008 by  doxygen 1.5.1