summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-05-16 13:31:48 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-05-16 13:31:48 (GMT)
commit31f8fd62815ade2416fca697fea79938ab61d230 (patch)
tree34f7f531464329534828bc183ab4079b2de3a103 /win
parent1781ae2223312ebc0d57a9861834a2be6904b53b (diff)
parentc29a2d58d9c3de29bcd7e88011aea2b9c1bcd92e (diff)
downloadtk-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.h21
-rw-r--r--win/winMain.c2
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)
/*
*----------------------------------------------------------------------
*