Forráskód Böngészése

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

Julius Pfrommer 8 éve
szülő
commit
1e883d19aa
1 módosított fájl, 1 hozzáadás és 1 törlés
  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)