Ver Fonte

Merge pull request #60 from kurisaW/c99

[fix] tls_client支持在C99标准或更高版本下编译
guo há 2 anos atrás
pai
commit
c6eb5ecbc0
1 ficheiros alterados com 4 adições e 0 exclusões
  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"