mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-03 19:20:18 +00:00
Use reserved identifier for warn_unused_result
This is normally equivalent, but works even if some other header defines a macro called warn_unused_result. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
913fc5fff3
commit
a33e6935bc
@ -69,7 +69,7 @@ MBEDTLS_DEPRECATED typedef int mbedtls_deprecated_numeric_constant_t;
|
|||||||
*/
|
*/
|
||||||
#if !defined(MBEDTLS_CHECK_RETURN)
|
#if !defined(MBEDTLS_CHECK_RETURN)
|
||||||
#if defined(__GNUC__)
|
#if defined(__GNUC__)
|
||||||
#define MBEDTLS_CHECK_RETURN __attribute__((warn_unused_result))
|
#define MBEDTLS_CHECK_RETURN __attribute__((__warn_unused_result__))
|
||||||
#elif defined(_MSC_VER) && _MSC_VER >= 1700
|
#elif defined(_MSC_VER) && _MSC_VER >= 1700
|
||||||
#include <sal.h>
|
#include <sal.h>
|
||||||
#define MBEDTLS_CHECK_RETURN _Check_return_
|
#define MBEDTLS_CHECK_RETURN _Check_return_
|
||||||
|
Loading…
x
Reference in New Issue
Block a user