Explorar el Código

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

Julius Pfrommer hace 8 años
padre
commit
1e883d19aa
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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)