summaryrefslogtreecommitdiff
path: root/extmod/mbedtls/mbedtls_config_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'extmod/mbedtls/mbedtls_config_common.h')
-rw-r--r--extmod/mbedtls/mbedtls_config_common.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/extmod/mbedtls/mbedtls_config_common.h b/extmod/mbedtls/mbedtls_config_common.h
index 1f7ac8818..040b0598d 100644
--- a/extmod/mbedtls/mbedtls_config_common.h
+++ b/extmod/mbedtls/mbedtls_config_common.h
@@ -123,4 +123,8 @@ void m_tracked_free(void *ptr);
#endif
+// Workaround for a mimxrt platform driver header that defines ARRAY_SIZE,
+// which is also defined in some mbedtls source files.
+#undef ARRAY_SIZE
+
#endif // MICROPY_INCLUDED_MBEDTLS_CONFIG_COMMON_H