Gilles Peskine 36f19b97e2 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-10-05 11:26:07 +02:00
..
data_files Include platform.h unconditionally: automatic part 2022-10-05 11:26:07 +02:00
mbedtls_dev Add warnings to test code and data about storage format stability 2022-06-30 13:57:27 +02:00
abi_check.py Document how to interpret negative reports 2022-06-30 13:57:27 +02:00
apidoc_full.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
assemble_changelog.py Fix case of Mbed TLS in assemble_changelog.py 2022-07-11 11:40:08 +01:00
bump_version.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
ci.requirements.txt Update references to old Github organisation 2022-03-31 14:27:24 +01:00
config.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
config.py Redo of PR#5345. Fixed spelling and typographical errors found by CodeSpell. 2022-04-28 18:22:20 +01:00
ecc-heap.sh Tune coverage of ecc-heap.sh 2022-04-15 09:33:29 +02:00
find-mem-leak.cocci Remove malloc references in mbedtls/scripts 2017-07-06 10:34:12 +01:00
footprint.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
generate_errors.pl Show warnings if something looks wrong 2021-08-02 22:57:46 +02:00
generate_features.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
generate_psa_constants.py Update all uses of old AEAD output size macros 2021-04-15 17:32:06 +02:00
generate_query_config.pl Add list_config generation 2021-12-10 20:19:05 +01:00
generate_visualc_files.pl Add test driver sources to VC build 2021-04-16 11:20:03 +02:00
maintainer.requirements.txt Any package used in a script must be listed in ci.requirements.txt 2022-01-22 00:48:00 +01:00
massif_max.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
memory.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
min_requirements.py Ensure files get closed when they go out of scope 2022-03-04 20:18:28 +01:00
output_env.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
rename.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
rm-calloc-cast.cocci Remove malloc references in mbedtls/scripts 2017-07-06 10:34:12 +01:00
tmp_ignore_makefiles.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
windows_msbuild.bat Add a simple build script for Windows with Visual Studio 2020-04-26 20:52:04 +02:00