Mercurial > sdl-ios-xcode
comparison src/loadso/macosx/SDL_sysloadso.c @ 1635:92947e3a18db
Make sure code is only compiled if the appropriate subsystem is enabled
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Fri, 14 Apr 2006 04:46:47 +0000 |
parents | 993ef9ff4688 |
children | 9f59d4c5aaea |
comparison
equal
deleted
inserted
replaced
1634:14f302c5b32c | 1635:92947e3a18db |
---|---|
18 | 18 |
19 Sam Lantinga | 19 Sam Lantinga |
20 slouken@libsdl.org | 20 slouken@libsdl.org |
21 */ | 21 */ |
22 #include "SDL_config.h" | 22 #include "SDL_config.h" |
23 | |
24 #ifdef SDL_LOADSO_DLCOMPAT | |
23 | 25 |
24 /* Please note that dlcompat apparently ships in current Mac OS X versions | 26 /* Please note that dlcompat apparently ships in current Mac OS X versions |
25 * as a system library that provides compatibility with the Unix "dlopen" | 27 * as a system library that provides compatibility with the Unix "dlopen" |
26 * interface. In order to allow SDL to work on older OS X releases and also | 28 * interface. In order to allow SDL to work on older OS X releases and also |
27 * not conflict with the system lib on newer versions, we include dlcompat | 29 * not conflict with the system lib on newer versions, we include dlcompat |
1397 if ( handle != NULL ) { | 1399 if ( handle != NULL ) { |
1398 SDL_OSX_dlclose(handle); | 1400 SDL_OSX_dlclose(handle); |
1399 } | 1401 } |
1400 } | 1402 } |
1401 | 1403 |
1404 #endif /* SDL_LOADSO_DLCOMPAT */ |