Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Mein <mein@cs.umn.edu>2006-06-17 00:00:00 +0400
committerKent Mein <mein@cs.umn.edu>2006-06-17 00:00:00 +0400
commit8918232465c742db520078b107077ecdd3cace48 (patch)
treeccbad2ffa50b8c46770998a1ff88eff3e3b8c27f /source/blender/blenpluginapi/util.h
parent3593d0684adcb27a037678d40dd843a4914793db (diff)
This is a modified version of patch #4200
http://projects.blender.org/tracker/index.php?func=detail&aid=4200&group_id=9&atid=127 It adds platform depenant prefix to function calls (extern on non windows platforms more complicated on windows) So that windows plugins can reference functions inside of blender. there is a small TODO still... Make release should build the helper library required under windows and modify how they build the plugins: dlltool --input-def plugin.DEF --output-lib libblenerplugin.a --dllname blender.exe and the pulgins should be made with: gcc -c (pluginname).c gcc -shared -o (pluginname).dll (pluginname).o libblenderplugin.a Kent
Diffstat (limited to 'source/blender/blenpluginapi/util.h')
-rw-r--r--source/blender/blenpluginapi/util.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/source/blender/blenpluginapi/util.h b/source/blender/blenpluginapi/util.h
index da566bf3969..b0b5f3aae54 100644
--- a/source/blender/blenpluginapi/util.h
+++ b/source/blender/blenpluginapi/util.h
@@ -34,6 +34,7 @@
#include <sys/types.h>
#include <stdlib.h>
#include <string.h>
+#include "externdef.h"
#ifndef NULL
#define NULL 0
@@ -87,9 +88,13 @@
#define PRINT3(d, e, f, var1, var2, var3) printf(# var1 ":%" # d " " # var2 ":%" # e " " # var3 ":%" # f "\n", var1, var2, var3)
#define PRINT4(d, e, f, g, var1, var2, var3, var4) printf(# var1 ":%" # d " " # var2 ":%" # e " " # var3 ":%" # f " " # var4 ":%" # g "\n", var1, var2, var3, var4)
-extern void *mallocN(int len, char *str);
-extern void *callocN(int len, char *str);
-extern short freeN(void *vmemh);
+LIBEXPORT void *mallocN(int len, char *str);
+LIBEXPORT void *callocN(int len, char *str);
+LIBEXPORT short freeN(void *vmemh);
+
+LIBEXPORT void *mallocT(int len, char *str);
+LIBEXPORT void *callocT(int len, char *str);
+LIBEXPORT void freeT(void *vmemh);
#endif /* UTIL_H */