mbedtls: Add a shim header to account for including "mbedtls/config.h" directly in program

Previously this resulted in a config mismatch between default config and esp_config.h

Closes https://github.com/espressif/esp-idf/issues/711
This commit is contained in:
Angus Gratton 2017-08-21 12:33:19 +10:00 committed by Angus Gratton
parent f44091e48a
commit 2c0ff0c1e1

View File

@ -0,0 +1,9 @@
/* This shim header is added so that any application code
which includes "mbedtls/config.h" directly gets the correct
config. */
#pragma once
#if !defined(MBEDTLS_CONFIG_FILE)
#include_next "mbedtls/config.h"
#else
#include MBEDTLS_CONFIG_FILE
#endif