Explorar el Código

Merge pull request #60 from kurisaW/c99

[fix] tls_client支持在C99标准或更高版本下编译
guo hace 2 años
padre
commit
c6eb5ecbc0
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  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"