summaryrefslogtreecommitdiffstats
path: root/generic/tk.h
diff options
context:
space:
mode:
authornijtmans <nijtmans>2010-08-19 05:23:12 (GMT)
committernijtmans <nijtmans>2010-08-19 05:23:12 (GMT)
commitfc22d193d9270cadf7112742536ec057e6f0fce2 (patch)
tree72b70813b087449b08265630f630891ef2f496e8 /generic/tk.h
parent1dde80cf1fb29ab968a57763484297e03312b4b3 (diff)
downloadtk-fc22d193d9270cadf7112742536ec057e6f0fce2.zip
tk-fc22d193d9270cadf7112742536ec057e6f0fce2.tar.gz
tk-fc22d193d9270cadf7112742536ec057e6f0fce2.tar.bz2
Move USE_OLD_IMAGE support after tkDecls.h
Diffstat (limited to 'generic/tk.h')
-rw-r--r--generic/tk.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/generic/tk.h b/generic/tk.h
index 8e3e144..f4c3cdb 100644
--- a/generic/tk.h
+++ b/generic/tk.h
@@ -12,7 +12,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tk.h,v 1.136 2010/07/16 22:06:05 nijtmans Exp $
+ * RCS: @(#) $Id: tk.h,v 1.137 2010/08/19 05:23:12 nijtmans Exp $
*/
#ifndef _TK
@@ -1359,11 +1359,6 @@ struct Tk_PhotoImageFormat {
* currently known. Filled in by Tk, not by
* image format handler. */
};
-
-#ifdef USE_OLD_IMAGE
-#define Tk_CreateImageType Tk_CreateOldImageType
-#define Tk_CreatePhotoImageFormat Tk_CreateOldPhotoImageFormat
-#endif /* USE_OLD_IMAGE */
/*
*----------------------------------------------------------------------
@@ -1523,6 +1518,13 @@ typedef int (Tk_SelectionProc) (ClientData clientData, int offset,
#include "tkDecls.h"
+#ifdef USE_OLD_IMAGE
+#undef Tk_CreateImageType
+#define Tk_CreateImageType Tk_CreateOldImageType
+#undef Tk_CreatePhotoImageFormat
+#define Tk_CreatePhotoImageFormat Tk_CreateOldPhotoImageFormat
+#endif /* USE_OLD_IMAGE */
+
/*
*----------------------------------------------------------------------
*