mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-23 01:35:27 +00:00
Add check for multiple config files being defined
Add check to check_config.h to ensure MBEDTLS_USER_CONFIG_FILE cannot be defined if MBEDTLS_CONFIG_FILE is defined. If both are defined MBEDTLS_USER_CONFIG_FILE will not be included, which may confuse users.
This commit is contained in:
parent
78f040cf33
commit
924819ea7b
|
@ -30,6 +30,10 @@
|
||||||
#ifndef MBEDTLS_CHECK_CONFIG_H
|
#ifndef MBEDTLS_CHECK_CONFIG_H
|
||||||
#define MBEDTLS_CHECK_CONFIG_H
|
#define MBEDTLS_CHECK_CONFIG_H
|
||||||
|
|
||||||
|
#if defined(MBEDTLS_CONFIG_FILE) && defined(MBEDTLS_USER_CONFIG_FILE)
|
||||||
|
#error "MBEDTLS_USER_CONFIG_FILE cannot be included if MBEDTLS_CONFIG_FILE is defined."
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* We assume CHAR_BIT is 8 in many places. In practice, this is true on our
|
* We assume CHAR_BIT is 8 in many places. In practice, this is true on our
|
||||||
* target platforms, so not an issue, but let's just be extra sure.
|
* target platforms, so not an issue, but let's just be extra sure.
|
||||||
|
|
Loading…
Reference in a new issue