mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-04 22:49:32 +03:00
fix build with clang-cl due to _Check_return_ (issue #200)
This commit is contained in:
parent
e981e9227e
commit
67de2549cf
1 changed files with 2 additions and 2 deletions
|
@ -26,9 +26,9 @@ terms of the MIT license. A copy of the license can be found in the file
|
|||
|
||||
#if (__cplusplus >= 201703)
|
||||
#define mi_decl_nodiscard [[nodiscard]]
|
||||
#elif (__GNUC__ >= 4)
|
||||
#elif (__GNUC__ >= 4) || defined(__clang__) // includes clang, icc, and clang-cl
|
||||
#define mi_decl_nodiscard __attribute__((warn_unused_result))
|
||||
#elif (_MSC_VER >= 1700)
|
||||
#elif (_MSC_VER >= 1700)
|
||||
#define mi_decl_nodiscard _Check_return_
|
||||
#else
|
||||
#define mi_decl_nodiscard
|
||||
|
|
Loading…
Add table
Reference in a new issue