summaryrefslogtreecommitdiffstats
path: root/generic/tkInt.h
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-09-29 21:19:28 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-09-29 21:19:28 (GMT)
commit6e86646cae3278a4956edc97a9cc11020979deac (patch)
tree65916ba5418cefe216eccbd9b266d5e227aff82f /generic/tkInt.h
parent9f877646408851975c5764493a9502a0b716c19c (diff)
downloadtk-6e86646cae3278a4956edc97a9cc11020979deac.zip
tk-6e86646cae3278a4956edc97a9cc11020979deac.tar.gz
tk-6e86646cae3278a4956edc97a9cc11020979deac.tar.bz2
Fix 'implicit declaration of TkPutImage' warning on UNIX
Diffstat (limited to 'generic/tkInt.h')
-rw-r--r--generic/tkInt.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/generic/tkInt.h b/generic/tkInt.h
index 953491d..433ae28 100644
--- a/generic/tkInt.h
+++ b/generic/tkInt.h
@@ -1337,6 +1337,16 @@ MODULE_SCOPE Status TkParseColor (Display * display,
Colormap map, const char* spec,
XColor * colorPtr);
#endif
+#if !defined(_WIN32) && !defined(__CYGWIN__) /* UNIX and MacOSX */
+#undef TkPutImage
+#define TkPutImage(colors, ncolors, display, pixels, gc, image, srcx, srcy, destx, desty, width, height) \
+ XPutImage(display, pixels, gc, image, srcx, srcy, destx, desty, width, height);
+#else
+#undef XPutImage
+#define XPutImage(display, pixels, gc, image, srcx, srcy, destx, desty, width, height) \
+ TkPutImage(NULL, 0, display, pixels, gc, image, srcx, srcy, destx, desty, width, height);
+#endif
+
#ifdef HAVE_XFT
MODULE_SCOPE void TkUnixSetXftClipRegion(TkRegion clipRegion);
#endif