Explorar o código

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

Julius Pfrommer %!s(int64=8) %!d(string=hai) anos
pai
achega
29e0b175bc
Modificáronse 1 ficheiros con 3 adicións e 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