From cc3ad56ff2bc2583fe68c4a9e0b41072a47c0b07 Mon Sep 17 00:00:00 2001 From: Sjors Provoost Date: Fri, 15 Mar 2019 10:43:35 +0100 Subject: [build] MSVC: set HAVE_SYSTEM for desktop apps --- build_msvc/bitcoin_config.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'build_msvc') diff --git a/build_msvc/bitcoin_config.h b/build_msvc/bitcoin_config.h index ab13f73539..66cc1208a1 100644 --- a/build_msvc/bitcoin_config.h +++ b/build_msvc/bitcoin_config.h @@ -421,4 +421,14 @@ /* Define for large files, on AIX-style hosts. */ /* #undef _LARGE_FILES */ +/* Windows Universal Platform constraints */ +#if !defined(WINAPI_FAMILY) || (WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP) +/* Either a desktop application without API restrictions, or and older system + before these macros were defined. */ + +/* ::wsystem is available */ +#define HAVE_SYSTEM 1 + +#endif // !WINAPI_FAMILY || WINAPI_FAMILY_DESKTOP_APP + #endif //BITCOIN_BITCOIN_CONFIG_H -- cgit v1.2.3