removed os2 support & support for building SDL with watcom.
This commit is contained in:
parent
01d137592c
commit
8d6fda4810
79 changed files with 3 additions and 10017 deletions
|
@ -24,13 +24,6 @@
|
|||
|
||||
#if SDL_DYNAMIC_API
|
||||
|
||||
#if defined(__OS2__)
|
||||
#define INCL_DOS
|
||||
#define INCL_DOSERRORS
|
||||
#include <os2.h>
|
||||
#include <dos.h>
|
||||
#endif
|
||||
|
||||
#include "SDL.h"
|
||||
|
||||
/* These headers have system specific definitions, so aren't included above */
|
||||
|
@ -356,20 +349,6 @@ static SDL_INLINE void *get_sdlapi_entry(const char *fname, const char *sym)
|
|||
return retval;
|
||||
}
|
||||
|
||||
#elif defined(__OS2__)
|
||||
static SDL_INLINE void *get_sdlapi_entry(const char *fname, const char *sym)
|
||||
{
|
||||
HMODULE hmodule;
|
||||
PFN retval = NULL;
|
||||
char error[256];
|
||||
if (DosLoadModule(error, sizeof(error), fname, &hmodule) == NO_ERROR) {
|
||||
if (DosQueryProcAddr(hmodule, 0, sym, &retval) != NO_ERROR) {
|
||||
DosFreeModule(hmodule);
|
||||
}
|
||||
}
|
||||
return (void *)retval;
|
||||
}
|
||||
|
||||
#else
|
||||
#error Please define your platform.
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue