r1458 - in trunk/code: qcommon sys

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sat Aug 23 18:45:30 EDT 2008


Author: tma
Date: 2008-08-23 18:45:30 -0400 (Sat, 23 Aug 2008)
New Revision: 1458

Modified:
   trunk/code/qcommon/vm_interpreted.c
   trunk/code/sys/sys_loadlib.h
Log:
* Fix unused variable warning
* Add USE_LOCAL_HEADERS guards to sys_loadlib.h


Modified: trunk/code/qcommon/vm_interpreted.c
===================================================================
--- trunk/code/qcommon/vm_interpreted.c	2008-08-23 02:33:08 UTC (rev 1457)
+++ trunk/code/qcommon/vm_interpreted.c	2008-08-23 22:45:30 UTC (rev 1458)
@@ -480,7 +480,7 @@
 		case OP_BLOCK_COPY:
 			{
 				int		*src, *dest;
-				int		i, count, srci, desti;
+				int		count, srci, desti;
 
 				count = r2;
 				// MrE: copy range check

Modified: trunk/code/sys/sys_loadlib.h
===================================================================
--- trunk/code/sys/sys_loadlib.h	2008-08-23 02:33:08 UTC (rev 1457)
+++ trunk/code/sys/sys_loadlib.h	2008-08-23 22:45:30 UTC (rev 1458)
@@ -33,10 +33,15 @@
 #		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)




More information about the quake3-commits mailing list