mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-07 06:42:56 +03:00
Don't incude auxiliary headers that have alternative versions
When compiling with `MBEDTLS_PSA_CRYPTO_PLATFORM_FILE`, we must not include `<psa/crypto_platform.h`. Same with `MBEDTLS_PSA_CRYPTO_STRUCT_FILE` and `<psa/crypto_struct.h>`. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
@@ -122,6 +122,7 @@ for my $root (@header_roots) {
|
||||
# Exclude some headers that are included by build_info.h and cannot
|
||||
# be included directly.
|
||||
push @header_files, grep {!m[
|
||||
^psa/crypto_(platform|struct)\.h$ | # have alt versions, included by psa/crypto.h anyway
|
||||
^mbedtls/platform_time\.h$ | # errors without time.h
|
||||
_config\.h |
|
||||
[/_]adjust[/_]
|
||||
|
Reference in New Issue
Block a user