mirror of
https://github.com/yawut/SDL.git
synced 2026-08-19 23:34:04 -05:00
Make sure code is only compiled if the appropriate subsystem is enabled
This commit is contained in:
@@ -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 */
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user