Skip to content

Commit

Permalink
Fix build error
Browse files Browse the repository at this point in the history
Include `platform.h` in `aes.c` and `gcm.c` to include the
platform errors.
  • Loading branch information
Ron Eldor authored and Ron Eldor committed Nov 7, 2018
1 parent bec0306 commit dc011c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions library/aes.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#include <string.h>

#include "mbedtls/aes.h"
#include "mbedtls/platform.h"
#include "mbedtls/platform_util.h"
#if defined(MBEDTLS_PADLOCK_C)
#include "mbedtls/padlock.h"
Expand Down
3 changes: 1 addition & 2 deletions library/gcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,8 @@

#if defined(MBEDTLS_SELF_TEST) && defined(MBEDTLS_AES_C)
#include "mbedtls/aes.h"
#if defined(MBEDTLS_PLATFORM_C)
#include "mbedtls/platform.h"
#else
#if !defined(MBEDTLS_PLATFORM_C)
#include <stdio.h>
#define mbedtls_printf printf
#endif /* MBEDTLS_PLATFORM_C */
Expand Down

0 comments on commit dc011c0

Please sign in to comment.