Restore platform.h inclusion in error.c
This is an automatically generated file. The automatic processing to change
platform.h inclusion made it diverge, so put it back the way it needs to be.
platform.h is getting included once unconditionally from the fixed part of
the template, and once from the automatic enumeration of headers, which is
perfectly fine.
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
diff --git a/library/error.c b/library/error.c
index 8c16ca0..8573369 100644
--- a/library/error.c
+++ b/library/error.c
@@ -162,7 +162,9 @@
#include "mbedtls/pkcs5.h"
#endif
+#if defined(MBEDTLS_PLATFORM_C)
#include "mbedtls/platform.h"
+#endif
#if defined(MBEDTLS_POLY1305_C)
#include "mbedtls/poly1305.h"