summaryrefslogtreecommitdiffstats
path: root/win/tkWinPort.h
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/tkWinPort.h
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/tkWinPort.h')
-rw-r--r--win/tkWinPort.h21
1 files changed, 4 insertions, 17 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++;}