Commit 9f8ca25
committed
[Support] [Windows] Conditionally compile the SetThreadInformation calls
The declarations for this API are missing in older mingw-w64
headers (versions before v12). This API is also hidden if building
with MS WinSDK if targeting versions before Windows 10.
Check whether THREAD_POWER_THROTTLING_CURRENT_VERSION is defined
before using this API; this constant is a #define in both
WinSDK and mingw-w64.1 parent d70f228 commit 9f8ca25
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| 139 | + | |
139 | 140 | | |
140 | 141 | | |
141 | 142 | | |
| |||
166 | 167 | | |
167 | 168 | | |
168 | 169 | | |
| 170 | + | |
169 | 171 | | |
170 | 172 | | |
171 | 173 | | |
| |||
0 commit comments