23 #ifndef MBEDTLS_PLATFORM_UTIL_H
24 #define MBEDTLS_PLATFORM_UTIL_H
29 #if defined(MBEDTLS_HAVE_TIME_DATE)
39 #define MBEDTLS_INTERNAL_VALIDATE_RET( cond, ret ) do { } while( 0 )
40 #define MBEDTLS_INTERNAL_VALIDATE( cond ) do { } while( 0 )
43 #if !defined(MBEDTLS_DEPRECATED_REMOVED)
44 #if defined(MBEDTLS_DEPRECATED_WARNING)
45 #define MBEDTLS_DEPRECATED __attribute__((deprecated))
46 MBEDTLS_DEPRECATED
typedef char const * mbedtls_deprecated_string_constant_t;
47 #define MBEDTLS_DEPRECATED_STRING_CONSTANT( VAL ) \
48 ( (mbedtls_deprecated_string_constant_t) ( VAL ) )
49 MBEDTLS_DEPRECATED
typedef int mbedtls_deprecated_numeric_constant_t;
50 #define MBEDTLS_DEPRECATED_NUMERIC_CONSTANT( VAL ) \
51 ( (mbedtls_deprecated_numeric_constant_t) ( VAL ) )
53 #define MBEDTLS_DEPRECATED
54 #define MBEDTLS_DEPRECATED_STRING_CONSTANT( VAL ) VAL
55 #define MBEDTLS_DEPRECATED_NUMERIC_CONSTANT( VAL ) VAL
66 #if !defined(MBEDTLS_CHECK_RETURN)
68 #define MBEDTLS_CHECK_RETURN __attribute__((__warn_unused_result__))
69 #elif defined(_MSC_VER) && _MSC_VER >= 1700
71 #define MBEDTLS_CHECK_RETURN _Check_return_
73 #define MBEDTLS_CHECK_RETURN
93 #define MBEDTLS_CHECK_RETURN_CRITICAL MBEDTLS_CHECK_RETURN
112 #if defined(MBEDTLS_CHECK_RETURN_WARNING)
113 #define MBEDTLS_CHECK_RETURN_TYPICAL MBEDTLS_CHECK_RETURN
115 #define MBEDTLS_CHECK_RETURN_TYPICAL
129 #define MBEDTLS_CHECK_RETURN_OPTIONAL
136 #if !defined(MBEDTLS_IGNORE_RETURN)
145 #define MBEDTLS_IGNORE_RETURN(result) ( (void) !( result ) )
172 #if defined(MBEDTLS_HAVE_TIME_DATE)
Build-time configuration info.