Commit 3892551
committed
C++: Fix binary incompatibility with freestanding build
`ImageCacheKey` has a different size depending on the feature `std`
which is not reflected by cbindgen. Ensure that it is always the same
for C++ build
Fixes #10077
(Another option would have been to add "frature=std" in
cbindgen::Config::defines, but the problem is that there is no
SLINT_FEATURE_STD (it is SLINT_FEATURE_FREESTANDING and has the opposite
meaning), and because of the order of includes it wouldn't be defined
when then ImageCacheKey struct is declared)1 parent b478a94 commit 3892551
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
292 | | - | |
| 292 | + | |
293 | 293 | | |
294 | 294 | | |
295 | 295 | | |
| |||
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
321 | | - | |
| 321 | + | |
322 | 322 | | |
323 | 323 | | |
324 | 324 | | |
| |||
0 commit comments