From 1c7209c3b928bacb43e1391ed7523f63c5385816 Mon Sep 17 00:00:00 2001 From: "Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)" Date: Thu, 23 Aug 2018 09:37:08 +0100 Subject: Add warning about use of header only edition of error code edition on Windows. --- include/llfio/v2.0/detail/impl/windows/import.hpp | 7 +++++-- include/llfio/v2.0/outcome | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'include/llfio/v2.0') diff --git a/include/llfio/v2.0/detail/impl/windows/import.hpp b/include/llfio/v2.0/detail/impl/windows/import.hpp index c7ccf165..6d22daab 100644 --- a/include/llfio/v2.0/detail/impl/windows/import.hpp +++ b/include/llfio/v2.0/detail/impl/windows/import.hpp @@ -54,8 +54,11 @@ Distributed under the Boost Software License, Version 1.0. #if !LLFIO_EXPERIMENTAL_STATUS_CODE // Bring in the custom NT kernel error code category #if LLFIO_HEADERS_ONLY -#define NTKERNEL_ERROR_CATEGORY_INLINE -#define NTKERNEL_ERROR_CATEGORY_STATIC +#if !defined(NTKERNEL_ERROR_CATEGORY_INLINE) +#pragma message("WARNING: LLFIO_HEADERS_ONLY=1, LLFIO_EXPERIMENTAL_STATUS_CODE=0 and NTKERNEL_ERROR_CATEGORY_INLINE=1 on Windows, this can produce unreliable binaries where semantic comparisons of error codes randomly fail!") +#define NTKERNEL_ERROR_CATEGORY_INLINE 1 // BOLD! +#define NTKERNEL_ERROR_CATEGORY_STATIC 1 +#endif #endif #include "../../../../ntkernel-error-category/include/ntkernel_category.hpp" #endif diff --git a/include/llfio/v2.0/outcome b/include/llfio/v2.0/outcome index 4499df4c..92c8fa50 160000 --- a/include/llfio/v2.0/outcome +++ b/include/llfio/v2.0/outcome @@ -1 +1 @@ -Subproject commit 4499df4c41e85450b87a6b1338a755bbb5e26552 +Subproject commit 92c8fa50a2c792bce9e1a60e0c3473161ba56aa3 -- cgit v1.2.3