Kaynağa Gözat

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

Julius Pfrommer 8 yıl önce
ebeveyn
işleme
1e883d19aa
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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)