Make sure code is only compiled if the appropriate subsystem is enabled

This commit is contained in:
Sam Lantinga
2006-04-14 04:46:47 +00:00
parent 3ca6badbcf
commit 4ffa1daabc
54 changed files with 173 additions and 6 deletions

View File

@@ -21,6 +21,8 @@
*/
#include "SDL_config.h"
#ifdef SDL_LOADSO_BEOS
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* System dependent library loading routines */
@@ -71,3 +73,4 @@ void SDL_UnloadObject(void *handle)
}
}
#endif /* SDL_LOADSO_BEOS */

View File

@@ -21,6 +21,8 @@
*/
#include "SDL_config.h"
#ifdef SDL_LOADSO_DLOPEN
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* System dependent library loading routines */
@@ -63,3 +65,4 @@ void SDL_UnloadObject(void *handle)
}
}
#endif /* SDL_LOADSO_DLOPEN */

View File

@@ -21,6 +21,8 @@
*/
#include "SDL_config.h"
#if defined(SDL_LOADSO_DUMMY) || defined(SDL_LOADSO_DISABLED)
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* System dependent library loading routines */
@@ -45,3 +47,4 @@ void SDL_UnloadObject(void *handle)
/* no-op. */
}
#endif /* SDL_LOADSO_DUMMY || SDL_LOADSO_DISABLED */

View File

@@ -21,6 +21,8 @@
*/
#include "SDL_config.h"
#ifdef SDL_LOADSO_MACOS
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* System dependent library loading routines */
@@ -101,3 +103,4 @@ void SDL_UnloadObject(void *handle)
}
}
#endif /* SDL_LOADSO_MACOS */

View File

@@ -21,6 +21,8 @@
*/
#include "SDL_config.h"
#ifdef SDL_LOADSO_DLCOMPAT
/* Please note that dlcompat apparently ships in current Mac OS X versions
* as a system library that provides compatibility with the Unix "dlopen"
* interface. In order to allow SDL to work on older OS X releases and also
@@ -1399,3 +1401,4 @@ void SDL_UnloadObject(void *handle)
}
}
#endif /* SDL_LOADSO_DLCOMPAT */

View File

@@ -21,6 +21,8 @@
*/
#include "SDL_config.h"
#ifdef SDL_LOADSO_LDG
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* System dependent library loading routines */
@@ -57,3 +59,4 @@ void SDL_UnloadObject(void *handle)
}
}
#endif /* SDL_LOADSO_LDG */

View File

@@ -21,6 +21,8 @@
*/
#include "SDL_config.h"
#ifdef SDL_LOADSO_OS2
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* System dependent library loading routines */
@@ -66,3 +68,4 @@ void SDL_UnloadObject(void *handle)
DosFreeModule((HMODULE) handle);
}
#endif /* SDL_LOADSO_OS2 */

View File

@@ -21,6 +21,8 @@
*/
#include "SDL_config.h"
#ifdef SDL_LOADSO_WIN32
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* System dependent library loading routines */
@@ -134,3 +136,4 @@ void SDL_UnloadObject(void *handle)
}
}
#endif /* SDL_LOADSO_WIN32 */