commit | 1bb16dd0fcc2081cbe405a0002a93423c719b1bf | [log] [tgz] |
---|---|---|
author | Steve Lhomme <robux4@ycbcr.xyz> | Tue Apr 21 07:14:42 2020 +0200 |
committer | Liu Hao <lh_mouse@126.com> | Tue Apr 21 21:42:01 2020 +0800 |
tree | 1e381624499340fb74481350677f03f0a78e736d | |
parent | f0d582c99dd6cffa0d5d09001b712adb11bfc275 [diff] |
headers: crt: allow blocking some APIs in winstore builds Based on this documentation some APIs are not allowed in UWP builds https://docs.microsoft.com/en-us/cpp/cppcx/crt-functions-not-supported-in-universal-windows-platform-apps?view=vs-2019 The documentation is old and may not apply to Win10 but it's still the one listed for UCRT compatibility : https://docs.microsoft.com/en-us/cpp/c-runtime-library/compatibility?view=vs-2019 Define _CRT_USE_WINAPI_FAMILY_DESKTOP_APP to let the compiler know the API's are allowed. So we can restrict some C runtime APIs based on the target family. Signed-off-by: Liu Hao <lh_mouse@126.com>