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)