Переглянути джерело

[fix] tls_client支持在C99标准或更高版本下编译

Yuqiang Wang 2 роки тому
батько
коміт
d0d3f2ef12
1 змінених файлів з 4 додано та 0 видалено
  1. 4 0
      ports/src/tls_client.c

+ 4 - 0
ports/src/tls_client.c

@@ -35,6 +35,10 @@
 #define DEBUG_LEVEL (2)
 #endif
 
+#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L    /* C99 or later */
+#include "mbedtls/debug.h"
+#endif
+
 #define DBG_ENABLE
 #define DBG_COLOR
 #define DBG_SECTION_NAME    "mbedtls.clnt"