summaryrefslogtreecommitdiffstats
path: root/generic/tkPlatDecls.h
diff options
context:
space:
mode:
authornijtmans@users.sourceforge.net <jan.nijtmans>2012-05-24 21:15:46 (GMT)
committernijtmans@users.sourceforge.net <jan.nijtmans>2012-05-24 21:15:46 (GMT)
commit4b4a835f88287cb7c2b8f337edf73ae60f78ef98 (patch)
tree209933d2accf8feb64d481f548a0029cae195009 /generic/tkPlatDecls.h
parentff7d277e8ca7be6a00fe05b46f7750666088a0c8 (diff)
parent897b49ab9d4dee6d1c2b452063477c6d79b0c181 (diff)
downloadtk-4b4a835f88287cb7c2b8f337edf73ae60f78ef98.zip
tk-4b4a835f88287cb7c2b8f337edf73ae60f78ef98.tar.gz
tk-4b4a835f88287cb7c2b8f337edf73ae60f78ef98.tar.bz2
Change XSetCommand signature to match Xorg, needed for Cygwin
Diffstat (limited to 'generic/tkPlatDecls.h')
-rw-r--r--generic/tkPlatDecls.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tkPlatDecls.h b/generic/tkPlatDecls.h
index 5b386ee..476fa4a 100644
--- a/generic/tkPlatDecls.h
+++ b/generic/tkPlatDecls.h
@@ -29,7 +29,7 @@
* Exported function declarations:
*/
-#ifdef __WIN32__ /* WIN */
+#if defined(__WIN32__) || defined(__CYGWIN__) /* WIN */
#ifndef Tk_AttachHWND_TCL_DECLARED
#define Tk_AttachHWND_TCL_DECLARED
/* 0 */
@@ -131,7 +131,7 @@ typedef struct TkPlatStubs {
int magic;
struct TkPlatStubHooks *hooks;
-#ifdef __WIN32__ /* WIN */
+#if defined(__WIN32__) || defined(__CYGWIN__) /* WIN */
Window (*tk_AttachHWND) (Tk_Window tkwin, HWND hwnd); /* 0 */
HINSTANCE (*tk_GetHINSTANCE) (void); /* 1 */
HWND (*tk_GetHWND) (Window window); /* 2 */
@@ -168,7 +168,7 @@ extern TkPlatStubs *tkPlatStubsPtr;
* Inline function declarations:
*/
-#ifdef __WIN32__ /* WIN */
+#if defined(__WIN32__) || defined(__CYGWIN__) /* WIN */
#ifndef Tk_AttachHWND
#define Tk_AttachHWND \
(tkPlatStubsPtr->tk_AttachHWND) /* 0 */