--- tmp\SDL_rotozoom.c	2008-06-01 17:16:54.000000000 +0200
+++ SDL_gfx-2.0.17\SDL_rotozoom.c	2008-10-31 15:52:51.912733300 +0200
@@ -695,7 +695,8 @@
 */
 SDL_Surface* rotateSurface90Degrees(SDL_Surface* pSurf, int numClockwiseTurns) 
 {
- int row, col;
+ int row, col, newWidth, newHeight;
+ SDL_Surface* pSurfOut;
  
  // Has to be a valid surface pointer and only 32-bit surfaces (for now)
  if (!pSurf || pSurf->format->BitsPerPixel != 32) { return NULL; }
@@ -705,9 +706,9 @@
  numClockwiseTurns = (numClockwiseTurns % 4);
 
  // if it's even, our new width will be the same as the source surface
- int newWidth = (numClockwiseTurns % 2) ? (pSurf->h) : (pSurf->w);
- int newHeight = (numClockwiseTurns % 2) ? (pSurf->w) : (pSurf->h);
- SDL_Surface* pSurfOut = SDL_CreateRGBSurface( pSurf->flags, newWidth, newHeight, pSurf->format->BitsPerPixel,
+ newWidth = (numClockwiseTurns % 2) ? (pSurf->h) : (pSurf->w);
+ newHeight = (numClockwiseTurns % 2) ? (pSurf->w) : (pSurf->h);
+ pSurfOut = SDL_CreateRGBSurface( pSurf->flags, newWidth, newHeight, pSurf->format->BitsPerPixel,
                            pSurf->format->Rmask,
                            pSurf->format->Gmask, 
                            pSurf->format->Bmask, 

--- tmp\SDL_gfxPrimitives.c	2008-06-01 21:36:48.000000000 +0200
+++ SDL_gfx-2.0.17\SDL_gfxPrimitives.c	2008-10-31 15:57:21.593237800 +0200
@@ -2212,6 +2212,9 @@
     Sint16 xpcx, xmcx, xpcy, xmcy;
     Sint16 ypcy, ymcy, ypcx, ymcx;
     Uint8 *colorptr;
+    Uint8 drawoct;
+    int startoct, endoct, oct, stopval_start, stopval_end;
+    double temp;
 
     /*
      * Check visibility of clipping rectangle
@@ -2290,7 +2293,7 @@
     //  / 2 | 1 \
     //      +y
 
-	Uint8 drawoct = 0; // 0x00000000
+	drawoct = 0; // 0x00000000
 					   // whether or not to keep drawing a given octant.
 					   // For example: 0x00111100 means we're drawing in octants 2-5
 
@@ -2301,12 +2304,11 @@
 	end %= 360;
 
 	// now, we find which octants we're drawing in.
-	int startoct = start / 45;
-	int endoct = end / 45;
-	int oct = startoct - 1; // we increment as first step in loop
+	startoct = start / 45;
+	endoct = end / 45;
+	oct = startoct - 1; // we increment as first step in loop
 
-	int stopval_start, stopval_end; // what values of cx to stop at.
-	double temp;
+	//stopval_start, stopval_end; // what values of cx to stop at.
 
 	do {
 		oct = (oct + 1) % 8;
@@ -3026,7 +3028,7 @@
 #ifdef WIN32
 
 __inline long int
-lrint (double ftl)
+lrint (double flt)
 {	
   int intgr;
   _asm
