Explorar el Código

fix: do not include malloc.h in clang (fix #834)

Julius Pfrommer hace 8 años
padre
commit
dfc313f7bd
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      include/ua_config.h.in

+ 3 - 1
include/ua_config.h.in

@@ -128,7 +128,9 @@ extern "C" {
  * Replace the macros for custom memory allocators if necessary */
 #include <stdlib.h>
 #ifdef _WIN32
-# include <malloc.h>
+# ifndef __clang__
+#  include <malloc.h>
+# endif
 #endif
 
 #define UA_free(ptr) free(ptr)