diff src/video/SDL_surface.c @ 1155:91569ec25acd

Fixed some compiler warnings about "unreachable code" on Watcom C.
author Ryan C. Gordon <icculus@icculus.org>
date Mon, 03 Oct 2005 08:38:28 +0000
parents 68f607298ca9
children 86d0d01290ea
line wrap: on
line diff
--- a/src/video/SDL_surface.c	Mon Oct 03 08:12:32 2005 +0000
+++ b/src/video/SDL_surface.c	Mon Oct 03 08:38:28 2005 +0000
@@ -712,8 +712,9 @@
 			break;
 
 		    case 3:
-			if(SDL_BYTEORDER == SDL_BIG_ENDIAN)
+			#if SDL_BYTEORDER == SDL_BIG_ENDIAN
 				color <<= 8;
+			#endif
 			for ( y=dstrect->h; y; --y ) {
 				Uint8 *pixels = row;
 				for ( x=dstrect->w; x; --x ) {