diff options
Diffstat (limited to 'unix/tkUnixPort.h')
-rw-r--r-- | unix/tkUnixPort.h | 70 |
1 files changed, 20 insertions, 50 deletions
diff --git a/unix/tkUnixPort.h b/unix/tkUnixPort.h index 8b6efce..23a5c45 100644 --- a/unix/tkUnixPort.h +++ b/unix/tkUnixPort.h @@ -5,8 +5,8 @@ * information that may be configuration-dependent, such as * #includes for system include files and a few other things. * - * Copyright (c) 1991-1993 The Regents of the University of California. - * Copyright (c) 1994-1996 Sun Microsystems, Inc. + * Copyright © 1991-1993 The Regents of the University of California. + * Copyright © 1994-1996 Sun Microsystems, Inc. * * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. @@ -26,11 +26,6 @@ #include <math.h> #include <string.h> #include <limits.h> -#ifdef NO_STDLIB_H -# include "../compat/stdlib.h" -#else -# include <stdlib.h> -#endif #include <sys/types.h> #include <sys/file.h> #ifdef HAVE_SYS_SELECT_H @@ -40,24 +35,12 @@ #ifndef _TCL # include <tcl.h> #endif -#ifdef TIME_WITH_SYS_TIME -# include <sys/time.h> -# include <time.h> -#else -# ifdef HAVE_SYS_TIME_H +#ifdef HAVE_SYS_TIME_H # include <sys/time.h> -# else -# include <time.h> -# endif -#endif -#ifdef HAVE_INTTYPES_H -# include <inttypes.h> -#endif -#ifndef NO_UNISTD_H -# include <unistd.h> -#else -# include "../compat/unistd.h" #endif +#include <time.h> +#include <inttypes.h> +#include <unistd.h> #if defined(__GNUC__) && !defined(__cplusplus) # pragma GCC diagnostic ignored "-Wc++-compat" #endif @@ -114,32 +97,19 @@ # define NBBY 8 #endif -#ifdef __CYGWIN__ -# include "tkIntXlibDecls.h" -# define UINT unsigned int -# define HWND void * -# define HDC void * -# define HINSTANCE void * -# define COLORREF void * -# define HMENU void * -# define TkWinDCState void -# define HPALETTE void * -# define WNDPROC void * -# define WPARAM void * -# define LPARAM void * -# define LRESULT void * - -#else /* !__CYGWIN__ */ - /* - * The TkPutImage macro strips off the color table information, which isn't - * needed for X. - */ - -# define TkPutImage(colors, ncolors, display, pixels, gc, image, srcx, srcy, destx, desty, width, height) \ - XPutImage(display, pixels, gc, image, srcx, srcy, destx, \ - desty, width, height); - -#endif /* !__CYGWIN__ */ +#include "tkIntXlibDecls.h" +#define UINT unsigned int +#define HWND void * +#define HDC void * +#define HINSTANCE void * +#define COLORREF void * +#define HMENU void * +#define TkWinDCState void +#define HPALETTE void * +#define WNDPROC void * +#define WPARAM void * +#define LPARAM void * +#define LRESULT void * /* * Supply macros for seek offsets, if they're not already provided by @@ -191,7 +161,7 @@ #ifndef __CYGWIN__ #define TkpPrintWindowId(buf,w) \ - snprintf((buf), TCL_INTEGER_SPACE, "0x%08lx", (unsigned long) (w)) + snprintf((buf), TCL_INTEGER_SPACE, "0x%lx", (unsigned long) (w)) #endif #endif /* _UNIXPORT */ |