1 /* 2 * tkPort.h -- 3 * 4 * This header file handles porting issues that occur because of 5 * differences between systems. It reads in platform specific 6 * portability files. 7 * 8 * Copyright (c) 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: tkPort.h,v 1.3 2002/08/31 06:12:26 das Exp $ 14 */ 15 16 #ifndef _TKPORT 17 #define _TKPORT 18 19 #if defined(__WIN32__) || defined(_WIN32) 20 #define NEED_REAL_STDIO 21 #endif 22 23 #ifndef _Lang 24 #include "Lang.h" 25 #endif 26 27 #if defined(__WIN32__) && !defined(WIN32) 28 #define WIN32 29 #endif 30 31 #if defined(__WIN32__) || defined(_WIN32) 32 # include "tkWinPort.h" 33 # ifndef strcasecmp 34 # define strcasecmp(a,b) stricmp(a,b) 35 # endif 36 # ifdef __CYGWIN__ 37 # undef strcasecmp 38 # endif 39 #else 40 # if defined(MAC_TCL) 41 # include "tkMacPort.h" 42 # elif defined(MAC_OSX_TK) 43 # include "../macosx/tkMacOSXPort.h" 44 # else 45 # ifdef __PM__ 46 # include "tkOS2Port.h" 47 # else 48 # include "tkUnixPort.h" 49 # endif 50 # endif 51 #endif 52 53 #endif /* _TKPORT */ 54