Skip to content

Commit cc3ad56

Browse files
committed
[build] MSVC: set HAVE_SYSTEM for desktop apps
1 parent c1c91bb commit cc3ad56

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

build_msvc/bitcoin_config.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,4 +421,14 @@
421421
/* Define for large files, on AIX-style hosts. */
422422
/* #undef _LARGE_FILES */
423423

424+
/* Windows Universal Platform constraints */
425+
#if !defined(WINAPI_FAMILY) || (WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP)
426+
/* Either a desktop application without API restrictions, or and older system
427+
before these macros were defined. */
428+
429+
/* ::wsystem is available */
430+
#define HAVE_SYSTEM 1
431+
432+
#endif // !WINAPI_FAMILY || WINAPI_FAMILY_DESKTOP_APP
433+
424434
#endif //BITCOIN_BITCOIN_CONFIG_H

0 commit comments

Comments
 (0)