summaryrefslogtreecommitdiffstats
path: root/generic/tkStubInit.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/tkStubInit.c')
-rw-r--r--generic/tkStubInit.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/generic/tkStubInit.c b/generic/tkStubInit.c
index 89ae433..d37dd4c 100644
--- a/generic/tkStubInit.c
+++ b/generic/tkStubInit.c
@@ -48,8 +48,7 @@
#undef TkSetRegion
#undef TkUnionRectWithRegion
#undef TkSubtractRegion
-
-TkIntStubs tkIntStubs;
+#undef TkPutImage
#ifndef __WIN32__
/* Make sure that extensions which call XParseColor through
@@ -77,6 +76,8 @@ TkIntStubs tkIntStubs;
#define GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS 0x00000004
int __stdcall GetModuleHandleExW(unsigned int, const char *, void *);
+TkIntStubs tkIntStubs;
+
#define Tk_GetHINSTANCE TkPlatGetHINSTANCE
static void *Tk_GetHINSTANCE()
{
@@ -85,9 +86,11 @@ static void *Tk_GetHINSTANCE()
(const char *)&tkIntStubs, &hInstance);
return hInstance;
}
-#else
+
+#else /* __CYGWIN__ */
# define Tk_GetHINSTANCE 0
-#endif
+# define TkPutImage 0
+#endif /* __CYGWIN__ */
# endif /* !MAC_TCL && !MACC_OSX_TCL */