summaryrefslogtreecommitdiffhomepage
path: root/dev/crt/alloca.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'dev/crt/alloca.hxx')
-rw-r--r--dev/crt/alloca.hxx18
1 files changed, 18 insertions, 0 deletions
diff --git a/dev/crt/alloca.hxx b/dev/crt/alloca.hxx
new file mode 100644
index 00000000..fedcb25d
--- /dev/null
+++ b/dev/crt/alloca.hxx
@@ -0,0 +1,18 @@
+/* -------------------------------------------
+
+ Copyright ZKA Technologies.
+
+ File: alloca.hxx
+ Purpose: Stack allocation functions.
+
+------------------------------------------- */
+
+#pragma once
+
+typedef void* ptr_type;
+typedef __SIZE_TYPE__ size_type;
+
+inline ptr_type __ndk_alloca(size_type sz)
+{
+ return __builtin_alloca(sz);
+}