summaryrefslogtreecommitdiff
path: root/std/base.toc
diff options
context:
space:
mode:
Diffstat (limited to 'std/base.toc')
-rw-r--r--std/base.toc4
1 files changed, 4 insertions, 0 deletions
diff --git a/std/base.toc b/std/base.toc
index bdb91e0..08c5e53 100644
--- a/std/base.toc
+++ b/std/base.toc
@@ -20,4 +20,8 @@ PLATFORM ::= #builtin("platform");
libc ::= "libc.so.6";
}
+PLATFORM_IS_UNIX :: bool = PLATFORM == PLATFORM_LINUX || PLATFORM == PLATFORM_OSX || PLATFORM == PLATFORM_FREEBSD
+ || PLATFORM == PLATFORM_OPENBSD || PLATFORM == PLATFORM_MISC_UNIX;
+// @TODO: write your own
+memcpy ::= #foreign("memcpy", libc) fn(&void, #C &"const void", #C size_t) &void;