diff options
author | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2018-08-23 11:37:08 +0300 |
---|---|---|
committer | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2018-08-23 11:37:08 +0300 |
commit | 1c7209c3b928bacb43e1391ed7523f63c5385816 (patch) | |
tree | eb7c295a49b2015b933b43994f594620aa480690 /include/llfio/v2.0/detail/impl/windows/import.hpp | |
parent | 517fce968606853d24bae19176a7c224aaed97dc (diff) |
Add warning about use of header only edition of error code edition on Windows.
Diffstat (limited to 'include/llfio/v2.0/detail/impl/windows/import.hpp')
-rw-r--r-- | include/llfio/v2.0/detail/impl/windows/import.hpp | 7 |
1 files changed, 5 insertions, 2 deletions
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 |