Commit 74215d4
committed
[Win32] Explicitly set minimum supported OS version to 14393
Currently, there is no explicit minimum version required for executing
SWT applications. However, some versions are implicitly not supported
anymore as library methods are linked that are not present in older OS
versions. In addition, we still have some methods dynamically linked and
their execution guarded by a version constraint for version that are out
of support. In particular, this holds for every Windows version older
than build 14393, which is the 1607 update for Windows 10 and the
release of Windows Server 2016, the latter being the latest still
supported server version of Windows.
This change cleans up Windows version support:
- It adds an explicit version check at initialization to avoid that
applications fail to start with incomprehensible linkage errors but a
proper error message
- It removes version guards for methods that are present since Windows
build 14393 (update 1607) or older
- It removes unnecessary dynamic linking for methods that are present in
Windows build 14393 (update 1607) or older
Fixes eclipse-platform/eclipse.platform.ui#2852
Probably fixes
#20111 parent f468eca commit 74215d4
File tree
7 files changed
+22
-111
lines changed- bundles/org.eclipse.swt
- Eclipse SWT PI/win32
- library
- org/eclipse/swt/internal/win32
- Eclipse SWT/win32/org/eclipse/swt
- internal
- widgets
7 files changed
+22
-111
lines changedLines changed: 0 additions & 56 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
136 | 135 | | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | 136 | | |
145 | 137 | | |
146 | 138 | | |
| |||
2493 | 2485 | | |
2494 | 2486 | | |
2495 | 2487 | | |
2496 | | - | |
2497 | 2488 | | |
2498 | | - | |
2499 | | - | |
2500 | | - | |
2501 | | - | |
2502 | | - | |
2503 | | - | |
2504 | | - | |
2505 | 2489 | | |
2506 | 2490 | | |
2507 | 2491 | | |
| |||
2516 | 2500 | | |
2517 | 2501 | | |
2518 | 2502 | | |
2519 | | - | |
2520 | 2503 | | |
2521 | | - | |
2522 | | - | |
2523 | | - | |
2524 | | - | |
2525 | | - | |
2526 | | - | |
2527 | | - | |
2528 | 2504 | | |
2529 | 2505 | | |
2530 | 2506 | | |
| |||
3320 | 3296 | | |
3321 | 3297 | | |
3322 | 3298 | | |
3323 | | - | |
3324 | 3299 | | |
3325 | | - | |
3326 | | - | |
3327 | | - | |
3328 | | - | |
3329 | | - | |
3330 | | - | |
3331 | | - | |
3332 | 3300 | | |
3333 | 3301 | | |
3334 | 3302 | | |
| |||
3426 | 3394 | | |
3427 | 3395 | | |
3428 | 3396 | | |
3429 | | - | |
3430 | 3397 | | |
3431 | | - | |
3432 | | - | |
3433 | | - | |
3434 | | - | |
3435 | | - | |
3436 | | - | |
3437 | | - | |
3438 | 3398 | | |
3439 | 3399 | | |
3440 | 3400 | | |
| |||
8971 | 8931 | | |
8972 | 8932 | | |
8973 | 8933 | | |
8974 | | - | |
8975 | 8934 | | |
8976 | | - | |
8977 | | - | |
8978 | | - | |
8979 | | - | |
8980 | | - | |
8981 | | - | |
8982 | | - | |
8983 | 8935 | | |
8984 | 8936 | | |
8985 | 8937 | | |
| |||
9329 | 9281 | | |
9330 | 9282 | | |
9331 | 9283 | | |
9332 | | - | |
9333 | 9284 | | |
9334 | | - | |
9335 | | - | |
9336 | | - | |
9337 | | - | |
9338 | | - | |
9339 | | - | |
9340 | | - | |
9341 | 9285 | | |
9342 | 9286 | | |
9343 | 9287 | | |
| |||
Lines changed: 0 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | 21 | | |
24 | 22 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
Lines changed: 12 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | 42 | | |
44 | 43 | | |
45 | 44 | | |
46 | 45 | | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
| 73 | + | |
72 | 74 | | |
73 | 75 | | |
74 | 76 | | |
| |||
93 | 95 | | |
94 | 96 | | |
95 | 97 | | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
96 | 106 | | |
97 | 107 | | |
98 | 108 | | |
| |||
2354 | 2364 | | |
2355 | 2365 | | |
2356 | 2366 | | |
2357 | | - | |
2358 | 2367 | | |
2359 | 2368 | | |
2360 | 2369 | | |
| |||
2818 | 2827 | | |
2819 | 2828 | | |
2820 | 2829 | | |
2821 | | - | |
2822 | 2830 | | |
2823 | | - | |
2824 | 2831 | | |
2825 | 2832 | | |
2826 | 2833 | | |
| |||
3006 | 3013 | | |
3007 | 3014 | | |
3008 | 3015 | | |
3009 | | - | |
3010 | 3016 | | |
3011 | 3017 | | |
3012 | 3018 | | |
| |||
4378 | 4384 | | |
4379 | 4385 | | |
4380 | 4386 | | |
4381 | | - | |
4382 | | - | |
4383 | | - | |
4384 | | - | |
| 4387 | + | |
4385 | 4388 | | |
4386 | | - | |
4387 | 4389 | | |
4388 | 4390 | | |
4389 | 4391 | | |
| |||
4496 | 4498 | | |
4497 | 4499 | | |
4498 | 4500 | | |
4499 | | - | |
4500 | 4501 | | |
4501 | 4502 | | |
4502 | 4503 | | |
| |||
Lines changed: 2 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
| 99 | + | |
| 100 | + | |
105 | 101 | | |
106 | 102 | | |
107 | 103 | | |
| |||
Lines changed: 5 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2224 | 2224 | | |
2225 | 2225 | | |
2226 | 2226 | | |
2227 | | - | |
2228 | | - | |
2229 | | - | |
2230 | | - | |
2231 | | - | |
2232 | | - | |
2233 | | - | |
2234 | | - | |
| 2227 | + | |
| 2228 | + | |
| 2229 | + | |
| 2230 | + | |
| 2231 | + | |
2235 | 2232 | | |
2236 | 2233 | | |
2237 | 2234 | | |
| |||
Lines changed: 1 addition & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
533 | 533 | | |
534 | 534 | | |
535 | 535 | | |
536 | | - | |
537 | | - | |
538 | | - | |
539 | | - | |
540 | | - | |
| 536 | + | |
541 | 537 | | |
542 | 538 | | |
543 | 539 | | |
| |||
5396 | 5392 | | |
5397 | 5393 | | |
5398 | 5394 | | |
5399 | | - | |
5400 | | - | |
5401 | | - | |
5402 | | - | |
5403 | 5395 | | |
5404 | 5396 | | |
5405 | 5397 | | |
| |||
Lines changed: 2 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2699 | 2699 | | |
2700 | 2700 | | |
2701 | 2701 | | |
2702 | | - | |
2703 | | - | |
2704 | | - | |
2705 | | - | |
2706 | | - | |
2707 | | - | |
2708 | | - | |
| 2702 | + | |
2709 | 2703 | | |
2710 | 2704 | | |
2711 | 2705 | | |
2712 | | - | |
2713 | | - | |
2714 | | - | |
2715 | | - | |
2716 | | - | |
2717 | | - | |
2718 | | - | |
| 2706 | + | |
2719 | 2707 | | |
2720 | 2708 | | |
2721 | 2709 | | |
| |||
0 commit comments