aboutsummaryrefslogtreecommitdiff
path: root/build_msvc
diff options
context:
space:
mode:
authorSjors Provoost <sjors@sprovoost.nl>2019-03-15 10:43:35 +0100
committerSjors Provoost <sjors@sprovoost.nl>2019-06-06 11:50:16 +0200
commitcc3ad56ff2bc2583fe68c4a9e0b41072a47c0b07 (patch)
treee4f8c45e12bc4cdb90c9b5def3a80b910eabd45a /build_msvc
parentc1c91bb78d7267f01ee3a3c156c218b46a92cd39 (diff)
downloadbitcoin-cc3ad56ff2bc2583fe68c4a9e0b41072a47c0b07.tar.xz
[build] MSVC: set HAVE_SYSTEM for desktop apps
Diffstat (limited to 'build_msvc')
-rw-r--r--build_msvc/bitcoin_config.h10
1 files changed, 10 insertions, 0 deletions
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