mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-03-20 19:21:09 +01:00
Support testing baremetal builds without the UNIXLIKE code
When `MBEDTLS_TEST_PLATFORM_IS_NOT_UNIXLIKE` is defined, do not enable `MBEDTLS_PLATFORM_IS_UNIXLIKE`. This lets us test baremetal builds as such even if we happen to be building for Linux or other Unix-like platform. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
@@ -29,7 +29,10 @@
|
||||
|
||||
/* Decide whether we're built for a Unix-like platform.
|
||||
*/
|
||||
#if defined(_WIN32)
|
||||
#if defined(MBEDTLS_TEST_PLATFORM_IS_NOT_UNIXLIKE) //no-check-names
|
||||
/* We may be building on a Unix-like platform, but for test purposes,
|
||||
* do not try to use Unix features. */
|
||||
#elif defined(_WIN32)
|
||||
/* If Windows platform interfaces are available, we use them, even if
|
||||
* a Unix-like might also to be available. */
|
||||
/* defined(_WIN32) ==> we can include <windows.h> */
|
||||
|
||||
Reference in New Issue
Block a user