nuttx-apps/crypto/mbedtls
zhanghongyu b883eb5929 mbedtls: fix build error when libcxx is enabled.
if  !defined(unix) && !defined(__unix) && !defined(__unix__) && \
    !defined(__APPLE__) && !defined(_WIN32) && !defined(__QNXNTO__) && \
    !defined(__HAIKU__) && !defined(__midipix__)
error
   "Platform entropy sources only work on Unix and Windows, see MBEDTLS_NO_PLATFORM_ENTROPY in mbedtls_config.h"

nuttx/libs/libxx/libcxx/include/__config
nuttx/libs/libxx/libcxx/include/limits.h:40,
apps/crypto/mbedtls/mbedtls/include/mbedtls/check_config.h:31,
apps/crypto/mbedtls/mbedtls/include/mbedtls/build_info.h:151,
apps/crypto/mbedtls/mbedtls/library/common.h:26,
apps/crypto/mbedtls/mbedtls/library/entropy_poll.c:25

if defined(__NuttX__)
undef __linux__
undef __APPLE__
undef __FreeBSD__
undef __GLIBC__
undef __NetBSD__
undef _WIN32
undef __sun__
undef _AIX
/ For the current use of the __unix__ macro in this library,
/ NuttX is not __unix__.
/ This might need to be revisited in future.
undef __unix__
endif

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2024-08-22 01:27:59 +08:00
..
include crypto/mbedtls: Unified configuration with mbedtls default configuration 2023-10-18 21:18:35 +08:00
source mbedtls-alt/md5: add md5 alternative implementation 2023-09-12 10:01:16 +08:00
.gitignore crypto: Initial support for mbedtls 2021-11-04 15:20:14 -03:00
0001-mbedtls-entropy_poll-use-getrandom-to-get-the-system.patch mbedtls: use 'getrandom' to get system entropy 2023-09-19 00:41:24 +08:00
0002-mbedtls-add-mbedtls-x509-crt-pool.patch crypto/mbedtls: load certificate memory optimization 2023-09-25 14:49:39 +08:00
CMakeLists.txt mbedtls: fix build error when libcxx is enabled. 2024-08-22 01:27:59 +08:00
Kconfig crypto/mbedtls: Unified configuration with mbedtls default configuration 2023-10-18 21:18:35 +08:00
Make.defs mbedtls: add nuttx crypto alternative implementation in mbedtls 2023-08-11 18:13:11 +08:00
Makefile mbedtls: fix build error when libcxx is enabled. 2024-08-22 01:27:59 +08:00