Skip to content

Commit fd9a4b2

Browse files
Ron EldorRon Eldor
authored andcommitted
Fix build error
Include `platform.h` in `aes.c` and `gcm.c` to include the platform errors.
1 parent 7c7c29e commit fd9a4b2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

library/aes.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
#include <string.h>
3737

3838
#include "mbedtls/aes.h"
39+
#include "mbedtls/platform.h"
3940
#include "mbedtls/platform_util.h"
4041
#if defined(MBEDTLS_PADLOCK_C)
4142
#include "mbedtls/padlock.h"

library/gcm.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,8 @@
4848

4949
#if defined(MBEDTLS_SELF_TEST) && defined(MBEDTLS_AES_C)
5050
#include "mbedtls/aes.h"
51-
#if defined(MBEDTLS_PLATFORM_C)
5251
#include "mbedtls/platform.h"
53-
#else
52+
#if !defined(MBEDTLS_PLATFORM_C)
5453
#include <stdio.h>
5554
#define mbedtls_printf printf
5655
#endif /* MBEDTLS_PLATFORM_C */

0 commit comments

Comments
 (0)