mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 18:55:41 +01:00
Remove duplicate definition of MBEDTLS_MPS_ERR_BASE
Signed-off-by: Hanno Becker <hanno.becker@arm.com>
This commit is contained in:
parent
4a079c5be7
commit
d913e2e982
@ -38,10 +38,6 @@
|
|||||||
* public API.
|
* public API.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef MBEDTLS_MPS_ERR_BASE
|
|
||||||
#define MBEDTLS_MPS_ERR_BASE ( 1 << 0 )
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \name SECTION: MPS general error codes
|
* \name SECTION: MPS general error codes
|
||||||
*
|
*
|
||||||
@ -49,13 +45,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef MBEDTLS_MPS_ERR_BASE
|
#ifndef MBEDTLS_MPS_ERR_BASE
|
||||||
#define MBEDTLS_MPS_ERR_BASE ( 1 << 10 )
|
#define MBEDTLS_MPS_ERR_BASE ( 0 )
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define MBEDTLS_MPS_MAKE_ERROR(code) \
|
#define MBEDTLS_MPS_MAKE_ERROR(code) \
|
||||||
( -( MBEDTLS_MPS_ERR_BASE | (code) ) )
|
( -( MBEDTLS_MPS_ERR_BASE | (code) ) )
|
||||||
|
|
||||||
|
|
||||||
#define MBEDTLS_ERR_MPS_OPERATION_UNEXPECTED MBEDTLS_MPS_MAKE_ERROR( 0x1 )
|
#define MBEDTLS_ERR_MPS_OPERATION_UNEXPECTED MBEDTLS_MPS_MAKE_ERROR( 0x1 )
|
||||||
#define MBEDTLS_ERR_MPS_INTERNAL_ERROR MBEDTLS_MPS_MAKE_ERROR( 0x2 )
|
#define MBEDTLS_ERR_MPS_INTERNAL_ERROR MBEDTLS_MPS_MAKE_ERROR( 0x2 )
|
||||||
|
|
||||||
@ -68,7 +63,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef MBEDTLS_MPS_READER_ERR_BASE
|
#ifndef MBEDTLS_MPS_READER_ERR_BASE
|
||||||
#define MBEDTLS_MPS_READER_ERR_BASE ( 1 << 7 )
|
#define MBEDTLS_MPS_READER_ERR_BASE ( 1 << 8 )
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define MBEDTLS_MPS_READER_MAKE_ERROR(code) \
|
#define MBEDTLS_MPS_READER_MAKE_ERROR(code) \
|
||||||
|
Loading…
Reference in New Issue
Block a user