From af29a59325fc4a9d27533d6331b0233039b6ae01 Mon Sep 17 00:00:00 2001 From: Anthony Hu Date: Wed, 30 Apr 2025 13:33:53 -0400 Subject: [PATCH] Do not allow define of max to interfere with pthreads --- wolfssl/wolfcrypt/wc_port.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wolfssl/wolfcrypt/wc_port.h b/wolfssl/wolfcrypt/wc_port.h index a33fbf46f..db17cb506 100644 --- a/wolfssl/wolfcrypt/wc_port.h +++ b/wolfssl/wolfcrypt/wc_port.h @@ -268,6 +268,9 @@ #if !defined(CONFIG_PTHREAD_IPC) && !defined(CONFIG_POSIX_THREADS) #error "Threading needs CONFIG_PTHREAD_IPC / CONFIG_POSIX_THREADS" #endif + #ifdef max + #undef max + #endif #if KERNEL_VERSION_NUMBER >= 0x30100 #include #include @@ -277,6 +280,7 @@ #include #include #endif + #define max MAX #endif #elif defined(WOLFSSL_TELIT_M2MB)