summaryrefslogtreecommitdiff
path: root/dev-tcltk/blt/files/blt-2.5.3-lto.patch
blob: 9d1543aae9e94a71b965ca78533382ec4985eeb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- a/generic/bltObjConfig.c	2022-08-04 10:42:54.705864029 +0200
+++ b/generic/bltObjConfig.c	2022-08-04 10:44:02.681005365 +0200
@@ -1803,11 +1803,11 @@
             fprintf(stderr, "Blt_ConfigTypes changed\n");
         }
         if (stype == BLT_CONFIG_CUSTOM) {
-            extern Blt_CustomOption bltDistanceOption;
-            extern Blt_CustomOption bltPositiveDistanceOption;
+            extern Tk_CustomOption bltDistanceOption;
+            extern Tk_CustomOption bltPositiveDistanceOption;
 
-            if (specPtr->customPtr == &bltDistanceOption ||
-                specPtr->customPtr == &bltPositiveDistanceOption
+            if (specPtr->customPtr == (Blt_CustomOption *)&bltDistanceOption ||
+                specPtr->customPtr == (Blt_CustomOption *)&bltPositiveDistanceOption
             ) {
                 stype = BLT_CONFIG_PIXELS;
             }