소스 검색

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

Julius Pfrommer 8 년 전
부모
커밋
dfc313f7bd
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  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)