diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-05-16 13:31:48 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-05-16 13:31:48 (GMT) |
commit | 31f8fd62815ade2416fca697fea79938ab61d230 (patch) | |
tree | 34f7f531464329534828bc183ab4079b2de3a103 /win | |
parent | 1781ae2223312ebc0d57a9861834a2be6904b53b (diff) | |
parent | c29a2d58d9c3de29bcd7e88011aea2b9c1bcd92e (diff) | |
download | tk-31f8fd62815ade2416fca697fea79938ab61d230.zip tk-31f8fd62815ade2416fca697fea79938ab61d230.tar.gz tk-31f8fd62815ade2416fca697fea79938ab61d230.tar.bz2 |
implement TkSetPixmapColormap and TkpPrintWindowId for cygwin
cleanup some more unused CYGWIN stuff
Diffstat (limited to 'win')
-rw-r--r-- | win/tkWinPort.h | 21 | ||||
-rw-r--r-- | win/winMain.c | 2 |
2 files changed, 5 insertions, 18 deletions
diff --git a/win/tkWinPort.h b/win/tkWinPort.h index e5ed7de..1b999ab 100644 --- a/win/tkWinPort.h +++ b/win/tkWinPort.h @@ -69,20 +69,9 @@ #include <X11/Xatom.h> #include <X11/Xutil.h> -#ifdef __CYGWIN__ -# ifndef _vsnprintf -# define _vsnprintf vsnprintf -# endif -# ifndef _wcsicmp -# define _wcsicmp wcscasecmp -# endif -#else -# ifndef strncasecmp -# define strncasecmp strnicmp -# endif -# ifndef strcasecmp -# define strcasecmp stricmp -# endif +#ifndef __GNUC__ +# define strncasecmp strnicmp +# define strcasecmp stricmp #endif #define NBBY 8 @@ -113,17 +102,15 @@ * under Windows. */ -#define TkpCmapStressed(tkwin,colormap) (0) #define XFlush(display) #define XGrabServer(display) #define XUngrabServer(display) -#define TkpSync(display) /* * The following functions are implemented as macros under Windows. */ -#define XFree(data) {if ((data) != NULL) ckfree((char *) (data));} +#define XFree(data) {if ((data) != NULL) ckfree(data);} #define XNoOp(display) {display->request++;} #define XSynchronize(display, bool) {display->request++;} #define XSync(display, bool) {display->request++;} diff --git a/win/winMain.c b/win/winMain.c index a182e3c..353c2b8 100644 --- a/win/winMain.c +++ b/win/winMain.c @@ -228,7 +228,7 @@ Tcl_AppInit( return TCL_OK; } -#if defined(__CYGWIN__) || defined(TK_TEST) +#if defined(TK_TEST) /* *---------------------------------------------------------------------- * |