summaryrefslogtreecommitdiff
path: root/Objective-C
diff options
context:
space:
mode:
Diffstat (limited to 'Objective-C')
-rw-r--r--Objective-C/libobjcl.h3
-rw-r--r--Objective-C/libobjcl.m8
2 files changed, 11 insertions, 0 deletions
diff --git a/Objective-C/libobjcl.h b/Objective-C/libobjcl.h
index c2e2fac..b5cefce 100644
--- a/Objective-C/libobjcl.h
+++ b/Objective-C/libobjcl.h
@@ -59,6 +59,9 @@ extern id objcl_current_exception;
extern NSRecursiveLock *objcl_current_exception_lock;
+void *
+objcl_memmove (void *dest, void *src, unsigned long length);
+
void
objcl_initialise_runtime (void);
diff --git a/Objective-C/libobjcl.m b/Objective-C/libobjcl.m
index f244e50..646dccd 100644
--- a/Objective-C/libobjcl.m
+++ b/Objective-C/libobjcl.m
@@ -25,6 +25,7 @@
#import "Foundation/Foundation.h"
#include <stdarg.h>
+#include <string.h>
#include <sys/mman.h>
#include <objc/objc-api.h>
@@ -68,6 +69,13 @@ static NSMutableSet *lisp_backed_classes = nil;
static int init_count = 0;
+void *
+objcl_memmove (void *dest, void *src, unsigned long length)
+{
+ return memmove (dest, src, length);
+}
+
+
void
objcl_initialise_runtime (void)
{