Remove redundant __SWITCH__ with CHIAKI_LIB_ENABLE_MBEDTLS definition

This commit is contained in:
h0neybadger 2020-05-18 12:43:24 +02:00 committed by Florian Märkl
commit 44b6058e06
5 changed files with 19 additions and 19 deletions

View file

@ -27,7 +27,7 @@
extern "C" {
#endif
#if defined(__SWITCH__) || defined(CHIAKI_LIB_ENABLE_MBEDTLS)
#ifdef CHIAKI_LIB_ENABLE_MBEDTLS
#include "mbedtls/ecdh.h"
#include "mbedtls/ctr_drbg.h"
#endif
@ -38,9 +38,9 @@ extern "C" {
typedef struct chiaki_ecdh_t
{
// the following lines may lead to memory corruption
// __SWITCH__ or CHIAKI_LIB_ENABLE_MBEDTLS must be defined
// CHIAKI_LIB_ENABLE_MBEDTLS must be defined
// globally (whole project)
#if defined(__SWITCH__) || defined(CHIAKI_LIB_ENABLE_MBEDTLS)
#ifdef CHIAKI_LIB_ENABLE_MBEDTLS
// mbedtls ecdh context
mbedtls_ecdh_context ctx;
// deterministic random bit generator