comparison src/loadso/macosx/SDL_loadso.c @ 1358:c71e05b4dc2e

More header massaging... works great on Windows. ;-)
author Sam Lantinga <slouken@libsdl.org>
date Fri, 10 Feb 2006 06:48:43 +0000
parents 604d73db6802
children
comparison
equal deleted inserted replaced
1357:e18467d67cfd 1358:c71e05b4dc2e
68 #include <limits.h> 68 #include <limits.h>
69 #include <mach-o/dyld.h> 69 #include <mach-o/dyld.h>
70 #include <mach-o/nlist.h> 70 #include <mach-o/nlist.h>
71 #include <mach-o/getsect.h> 71 #include <mach-o/getsect.h>
72 72
73 #include "SDL_stdlib.h" 73 #include "SDL_stdinc.h"
74 #include "SDL_string.h"
75 74
76 /* Just playing to see if it would compile with the freebsd headers, it does, 75 /* Just playing to see if it would compile with the freebsd headers, it does,
77 * but because of the different values for RTLD_LOCAL etc, it would break binary 76 * but because of the different values for RTLD_LOCAL etc, it would break binary
78 * compat... oh well 77 * compat... oh well
79 */ 78 */
1380 #error Compiling for the wrong platform? 1379 #error Compiling for the wrong platform?
1381 #elif defined(USE_DLOPEN) 1380 #elif defined(USE_DLOPEN)
1382 #error Do not use USE_DLOPEN on Mac OS X. 1381 #error Do not use USE_DLOPEN on Mac OS X.
1383 #endif 1382 #endif
1384 1383
1385 #include "SDL_types.h"
1386 #include "SDL_error.h"
1387 #include "SDL_loadso.h" 1384 #include "SDL_loadso.h"
1388 1385
1389 void *SDL_LoadObject(const char *sofile) 1386 void *SDL_LoadObject(const char *sofile)
1390 { 1387 {
1391 void *handle = SDL_OSX_dlopen(sofile, RTLD_NOW); 1388 void *handle = SDL_OSX_dlopen(sofile, RTLD_NOW);