소스 검색

fix: alloca with clang on windows (fixes #834)

Julius Pfrommer 8 년 전
부모
커밋
1e883d19aa
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/ua_util.h

+ 1 - 1
src/ua_util.h

@@ -30,7 +30,7 @@
 #endif
 
 #ifndef NO_ALLOCA
-# ifdef __GNUC__
+# if defined(__GNUC__) || defined(__clang__)
 #  define UA_alloca(size) __builtin_alloca (size)
 # elif defined(_WIN32)
 #  define UA_alloca(SIZE) _alloca(SIZE)