272
|
1 |
diff -ur CEGUI-0.5.0-orig/include/CEGUIDynamicModule.h CEGUI-0.5.0/include/CEGUIDynamicModule.h
|
|
2 |
--- CEGUI-0.5.0-orig/include/CEGUIDynamicModule.h 2006-05-13 02:42:23.000000000 +0700
|
|
3 |
+++ CEGUI-0.5.0/include/CEGUIDynamicModule.h 2007-05-07 12:49:07.566455751 +0700
|
|
4 |
@@ -50,6 +50,15 @@
|
|
5 |
# define DYNLIB_UNLOAD( a ) dlclose( a )
|
|
6 |
# define DYNLIB_ERROR( ) dlerror( )
|
|
7 |
|
|
8 |
+#elif defined(sun)
|
|
9 |
+#include <dlfcn.h>
|
|
10 |
+#include <link.h>
|
|
11 |
+# define DYNLIB_HANDLE void*
|
|
12 |
+# define DYNLIB_LOAD( a ) dlopen( a, RTLD_LAZY )
|
|
13 |
+# define DYNLIB_GETSYM( a, b ) dlsym( a, b )
|
|
14 |
+# define DYNLIB_UNLOAD( a ) dlclose( a )
|
|
15 |
+# define DYNLIB_ERROR( ) dlerror( )
|
|
16 |
+
|
|
17 |
#elif defined(__APPLE_CC__)
|
|
18 |
# define DYNLIB_HANDLE CFBundleRef
|
|
19 |
# define DYNLIB_LOAD( a ) mac_loadExeBundle( a )
|