Update of /cvsroot/java-game-lib/LWJGL/src/native/common/devil
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20129
Modified Files:
extilu.c extilut.c
Log Message:
using .dylibs for devil on mac
Index: extilut.c
===================================================================
RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/devil/extilut.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- extilut.c 18 May 2005 17:36:42 -0000 1.6
+++ extilut.c 22 May 2005 11:14:00 -0000 1.7
@@ -11,9 +11,7 @@
#include <mach-o/dyld.h>
#include <stdlib.h>
#include <string.h>
-// note, we use the IL handle since it's all in one lib
-extern const struct mach_header* devILhandle;
-static const struct mach_header* devILUThandle; // never actually used, just makes it shut up
+static const struct mach_header* devILUThandle;
#include "extilut.h"
#endif
@@ -34,7 +32,7 @@
return NULL;
mac_symbol_name[0] = '_';
strcpy(&(mac_symbol_name[1]), function);
- NSSymbol symbol = NSLookupSymbolInImage(devILhandle, mac_symbol_name, NSLOOKUPSYMBOLINIMAGE_OPTION_RETURN_ON_ERROR);
+ NSSymbol symbol = NSLookupSymbolInImage(devILUThandle, mac_symbol_name, NSLOOKUPSYMBOLINIMAGE_OPTION_RETURN_ON_ERROR);
free(mac_symbol_name);
if (symbol == NULL)
return NULL;
Index: extilu.c
===================================================================
RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/devil/extilu.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- extilu.c 18 May 2005 17:36:42 -0000 1.7
+++ extilu.c 22 May 2005 11:14:00 -0000 1.8
@@ -11,9 +11,7 @@
#include <mach-o/dyld.h>
#include <stdlib.h>
#include <string.h>
-// note, we use the IL handle since it's all in one lib
-extern const struct mach_header* devILhandle;
-static const struct mach_header* devILUhandle; // never actually used, just makes it shut up
+static const struct mach_header* devILUhandle;
#include "extilu.h"
#endif
@@ -34,7 +32,7 @@
return NULL;
mac_symbol_name[0] = '_';
strcpy(&(mac_symbol_name[1]), function);
- NSSymbol symbol = NSLookupSymbolInImage(devILhandle, mac_symbol_name, NSLOOKUPSYMBOLINIMAGE_OPTION_RETURN_ON_ERROR);
+ NSSymbol symbol = NSLookupSymbolInImage(devILUhandle, mac_symbol_name, NSLOOKUPSYMBOLINIMAGE_OPTION_RETURN_ON_ERROR);
free(mac_symbol_name);
if (symbol == NULL)
return NULL;
|