Move #include "common.h" where config.h used to be

After removing config.h, the inclusion of it in common.h would be too late
in the code. Therefore common.h has been moved to where config.h used to
be included.

Signed-off-by: Joe Subbiani <joe.subbiani@arm.com>
This commit is contained in:
Joe Subbiani 2021-08-18 12:57:54 +01:00
parent 4446e82146
commit d6ea063371
2 changed files with 4 additions and 4 deletions

View File

@ -18,6 +18,8 @@
* limitations under the License.
*/
#include "common.h"
#if defined(MBEDTLS_PSA_CRYPTO_STORAGE_C)
#include <stdlib.h>
@ -42,8 +44,6 @@
#define mbedtls_free free
#endif
#include "common.h"
/****************************************************************/
/* Key storage */
/****************************************************************/

View File

@ -18,6 +18,8 @@
* limitations under the License.
*/
#include "common.h"
#if defined(MBEDTLS_PSA_ITS_FILE_C)
#if defined(MBEDTLS_PLATFORM_C)
@ -32,8 +34,6 @@
#include "psa_crypto_its.h"
#include "common.h"
#include <limits.h>
#include <stdint.h>
#include <stdio.h>