mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-11-10 14:41:42 +00:00
* Fix unused variable warning
* Add USE_LOCAL_HEADERS guards to sys_loadlib.h
This commit is contained in:
parent
17f52fa5a1
commit
a6382d2d9b
2 changed files with 9 additions and 4 deletions
|
@ -480,7 +480,7 @@ nextInstruction2:
|
|||
case OP_BLOCK_COPY:
|
||||
{
|
||||
int *src, *dest;
|
||||
int i, count, srci, desti;
|
||||
int count, srci, desti;
|
||||
|
||||
count = r2;
|
||||
// MrE: copy range check
|
||||
|
|
|
@ -33,10 +33,15 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
# define Sys_UnloadLibrary(h) dlclose(h)
|
||||
# define Sys_LoadFunction(h,fn) dlsym(h,fn)
|
||||
# define Sys_LibraryError() dlerror()
|
||||
#endif
|
||||
# endif
|
||||
#else
|
||||
# include "SDL.h"
|
||||
# include "SDL_loadso.h"
|
||||
# ifdef USE_LOCAL_HEADERS
|
||||
# include "SDL.h"
|
||||
# include "SDL_loadso.h"
|
||||
# else
|
||||
# include <SDL.h>
|
||||
# include <SDL_loadso.h>
|
||||
# endif
|
||||
# define Sys_LoadLibrary(f) SDL_LoadObject(f)
|
||||
# define Sys_UnloadLibrary(h) SDL_UnloadObject(h)
|
||||
# define Sys_LoadFunction(h,fn) SDL_LoadFunction(h,fn)
|
||||
|
|
Loading…
Reference in a new issue