mbedtls/scripts/data_files
Gilles Peskine 945b23c46f Include platform.h unconditionally: automatic part
We used to include platform.h only when MBEDTLS_PLATFORM_C was enabled, and
to define ad hoc replacements for mbedtls_xxx functions on a case-by-case
basis when MBEDTLS_PLATFORM_C was disabled. The only reason for this
complication was to allow building individual source modules without copying
platform.h. This is not something we support or recommend anymore, so get
rid of the complication: include platform.h unconditionally.

There should be no change in behavior since just including the header should
not change the behavior of a program.

This commit replaces most occurrences of conditional inclusion of
platform.h, using the following code:

```
perl -i -0777 -pe 's!#if.*\n#include "mbedtls/platform.h"\n(#else.*\n(#define (mbedtls|MBEDTLS)_.*\n|#include <(stdarg|stddef|stdio|stdlib|string|time)\.h>\n)*)?#endif.*!#include "mbedtls/platform.h"!mg' $(git grep -l '#include "mbedtls/platform.h"')
```

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2022-09-15 20:33:07 +02:00
..
driver_templates Merge pull request #5292 from mprse/asym_encrypt 2022-03-10 20:07:38 +01:00
error.fmt Include platform.h unconditionally: automatic part 2022-09-15 20:33:07 +02:00
query_config.fmt Include platform.h unconditionally: automatic part 2022-09-15 20:33:07 +02:00
version_features.fmt Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
vs6-app-template.dsp Add missing VS project files, generated by script 2013-09-18 14:34:33 +02:00
vs6-main-template.dsp Systematically use Windows line endings in Windows files 2020-04-01 13:42:24 +02:00
vs6-workspace-template.dsw Add VS6 workspace to update-vs-apps.pl 2014-05-22 13:52:50 +02:00
vs2010-app-template.vcxproj Remove definitions and settings that are never used or duplicate MSVC 2020-05-21 17:19:56 +03:00
vs2010-main-template.vcxproj Remove definitions and settings that are never used or duplicate MSVC 2020-05-21 17:19:56 +03:00
vs2010-sln-template.sln Systematically use Windows line endings in Windows files 2020-04-01 13:42:24 +02:00