mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-04 14:39:31 +03:00
fix __cplusplus test (pr #287)
This commit is contained in:
parent
797c50e0c0
commit
f107acb3c8
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ terms of the MIT license. A copy of the license can be found in the file
|
|||
#define mi_attr_noexcept
|
||||
#endif
|
||||
|
||||
#if (__cplusplus >= 201703)
|
||||
#if defined(__cplusplus) && (__cplusplus >= 201703)
|
||||
#define mi_decl_nodiscard [[nodiscard]]
|
||||
#elif (__GNUC__ >= 4) || defined(__clang__) // includes clang, icc, and clang-cl
|
||||
#define mi_decl_nodiscard __attribute__((warn_unused_result))
|
||||
|
|
Loading…
Add table
Reference in a new issue