summaryrefslogtreecommitdiffhomepage
path: root/dev/crt
diff options
context:
space:
mode:
authorAmlal <amlal@el-mahrouss-logic.com>2024-10-24 20:11:21 +0200
committerAmlal <amlal@el-mahrouss-logic.com>2024-10-24 20:11:21 +0200
commitb0850d02b7fba8f0e16092c7609e928907d2521d (patch)
tree81ba785ba42607dff1df3538f305a23b8c2b1ce5 /dev/crt
parent52b4044ab4956597aee4c629ba5fe5ec8966beac (diff)
IMP: Doing a cleanup and finishing the first version of ZKA.
Signed-off-by: Amlal <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'dev/crt')
-rw-r--r--dev/crt/alloca.h4
-rw-r--r--dev/crt/defines.h8
2 files changed, 6 insertions, 6 deletions
diff --git a/dev/crt/alloca.h b/dev/crt/alloca.h
index 857a0ade..35e742d8 100644
--- a/dev/crt/alloca.h
+++ b/dev/crt/alloca.h
@@ -11,9 +11,9 @@
#include <crt/defines.h>
-inline ptr_type __ndk_alloca(size_type sz)
+inline ptr_type __rt_alloca(size_type sz)
{
return __builtin_alloca(sz);
}
-#define alloca __ndk_alloca
+#define alloca __rt_alloca
diff --git a/dev/crt/defines.h b/dev/crt/defines.h
index ea821505..f9c85387 100644
--- a/dev/crt/defines.h
+++ b/dev/crt/defines.h
@@ -4,8 +4,8 @@
------------------------------------------- */
-#ifndef __TOOLCHAINKIT_DEFINES_HXX__
-#define __TOOLCHAINKIT_DEFINES_HXX__
+#ifndef __TOOLCHAINKIT_DEFINES_H__
+#define __TOOLCHAINKIT_DEFINES_H__
#include <stdint.h>
#include <stddef.h>
@@ -26,7 +26,7 @@ typedef char* caddr_t;
#ifdef __GNUC__
#include <crt/alloca.h>
#elif defined(__TOOLCHAINKIT__)
-#define __alloca(sz) __ndk_alloca(sz)
+#define __alloca(sz) __rt_alloca(sz)
#endif
#define __deref(ptr) (*(ptr))
@@ -103,4 +103,4 @@ namespace std
}
} // namespace std
-#endif /* __TOOLCHAINKIT_DEFINES_HXX__ */
+#endif /* __TOOLCHAINKIT_DEFINES_H__ */