Explorar el Código

fix #891: adding malloc.h in clang under windows

Julius Pfrommer hace 8 años
padre
commit
29e0b175bc
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      plugins/ua_network_tcp.c

+ 3 - 1
plugins/ua_network_tcp.c

@@ -18,7 +18,9 @@
 #include <string.h> // memset
 #include <errno.h>
 #ifdef _WIN32
-# include <malloc.h>
+# ifndef __clang__
+#  include <malloc.h>
+# endif
 /* Fix redefinition of SLIST_ENTRY on mingw winnt.h */
 # ifdef SLIST_ENTRY
 #  undef SLIST_ENTRY