Skip to content

Commit 27f291d

Browse files
committed
define HAVE_MEMORY_PRIORITY on win32, conf default target to win8.
1 parent 3f95562 commit 27f291d

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

builds/msvc/vs2022/libbitcoin-system.import.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
<!-- WITH_ICU always defined in Visual Studio builds. -->
5050
<!-- NOMINMAX enables use of std::min/max without conflict. -->
5151
<!-- WIN32_LEAN_AND_MEAN avoids inclusion of certain headers, winsock.h conflicts with boost and protocol use of winsock2.h. -->
52-
<PreprocessorDefinitions>WITH_ICU;WIN32_LEAN_AND_MEAN;NOMINMAX;_WIN32_WINNT=0x0600;%(PreprocessorDefinitions)</PreprocessorDefinitions>
52+
<PreprocessorDefinitions>WITH_ICU;WIN32_LEAN_AND_MEAN;NOMINMAX;_WIN32_WINNT=0x0602;%(PreprocessorDefinitions)</PreprocessorDefinitions>
5353
<!-- Disable auto-linking for all boost-json and its dependency boost-container so they can be header only. -->
5454
<PreprocessorDefinitions>BOOST_JSON_NO_LIB;BOOST_CONTAINER_NO_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
5555
<PreprocessorDefinitions Condition="'$(Linkage-libbitcoin-system)' == 'static' Or '$(Linkage-libbitcoin-system)' == 'ltcg'">BC_STATIC;%(PreprocessorDefinitions)</PreprocessorDefinitions>

include/bitcoin/system/preprocessor.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,10 @@
194194
#define _ARM_USE_NEW_NEON_INTRINSICS
195195
#endif
196196

197+
#if defined(HAVE_MSC) && (_WIN32_WINNT >= 0x0602)
198+
#define HAVE_MEMORY_PRIORITY
199+
#endif
200+
197201
/// Workarounds for C++ noncompliance.
198202
/// ---------------------------------------------------------------------------
199203

src/define.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,10 @@ DEFINED("HAVE_CPP17")
203203
DEFINED("HAVE_CPP20")
204204
#endif
205205

206+
#ifdef HAVE_MEMORY_PRIORITY
207+
DEFINED("HAVE_MEMORY_PRIORITY")
208+
#endif
209+
206210
#ifdef HAVE_CONSTEVAL
207211
DEFINED("HAVE_CONSTEVAL")
208212
#endif

0 commit comments

Comments
 (0)