aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/compute/common/macros.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/compute/common/macros.h')
-rw-r--r--src/compute/common/macros.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/compute/common/macros.h b/src/compute/common/macros.h
index 35f658f315..d91a000eff 100644
--- a/src/compute/common/macros.h
+++ b/src/compute/common/macros.h
@@ -37,8 +37,11 @@
//
//
-#define ALLOCA(n) _alloca(n)
-
+#if defined(_MSC_VER)
+ #define ALLOCA(n) _alloca(n)
+#else
+ #define ALLOCA(n) alloca(n)
+#endif
//
//
//