diff options
Diffstat (limited to 'unix/tkUnixPort.h')
-rw-r--r-- | unix/tkUnixPort.h | 25 |
1 files changed, 7 insertions, 18 deletions
diff --git a/unix/tkUnixPort.h b/unix/tkUnixPort.h index 27787ce..6e7a701 100644 --- a/unix/tkUnixPort.h +++ b/unix/tkUnixPort.h @@ -67,6 +67,9 @@ # include <time.h> # endif #endif +#if HAVE_INTTYPES_H +# include <inttypes.h> +#endif #ifndef NO_UNISTD_H # include <unistd.h> #else @@ -152,22 +155,6 @@ XPutImage(display, pixels, gc, image, srcx, srcy, destx, \ desty, width, height); - /* - * These macros are just wrappers for the equivalent X Region calls. - */ - -# define TkClipBox(rgn, rect) XClipBox((Region) (rgn), (rect)) -# define TkCreateRegion() (TkRegion) XCreateRegion() -# define TkDestroyRegion(rgn) XDestroyRegion((Region) (rgn)) -# define TkIntersectRegion(a, b, r) XIntersectRegion((Region) (a), \ - (Region) (b), (Region) (r)) -# define TkRectInRegion(r, x, y, w, h) XRectInRegion((Region) (r), (x), (y), (w), (h)) -# define TkSetRegion(d, gc, rgn) XSetRegion((d), (gc), (Region) (rgn)) -# define TkSubtractRegion(a, b, r) XSubtractRegion((Region) (a), \ - (Region) (b), (Region) (r)) -# define TkUnionRectWithRegion(rect, src, ret) XUnionRectWithRegion((rect), \ - (Region) (src), (Region) (ret)) - #endif /* !__CYGWIN__ */ /* @@ -197,7 +184,7 @@ * These functions do nothing under Unix, so we just eliminate calls to them. */ -#define TkpButtonSetDefaults(specPtr) {} +#define TkpButtonSetDefaults() {} #define TkpDestroyButton(butPtr) {} #define TkSelUpdateClipboard(a,b) {} #ifndef __CYGWIN__ @@ -226,10 +213,12 @@ /* * The following declaration is used to get access to a private Tcl interface * that is needed for portability reasons. - */ + * + * Disabled for now to determined whether we really still need this. #ifndef _TCLINT #include <tclInt.h> #endif + */ #endif /* _UNIXPORT */ |