# HG changeset patch # User Sam Lantinga # Date 1139337414 0 # Node ID 7f32b9bede0609ff54d16a8c8676225f2294c946 # Parent 2eed9997bd249b48393929f6966f357493a306c6 Fixes for Visual C++ 6.0 diff -r 2eed9997bd24 -r 7f32b9bede06 VisualC.zip Binary file VisualC.zip has changed diff -r 2eed9997bd24 -r 7f32b9bede06 include/SDL_types.h --- a/include/SDL_types.h Tue Feb 07 17:49:40 2006 +0000 +++ b/include/SDL_types.h Tue Feb 07 18:36:54 2006 +0000 @@ -27,7 +27,9 @@ #include #ifdef _MSC_VER -#include /* For size_t */ +/* FIXME!! */ +typedef unsigned int size_t; +typedef size_t uintptr_t; #endif /* The number of elements in an array */ diff -r 2eed9997bd24 -r 7f32b9bede06 include/SDL_windows.h --- a/include/SDL_windows.h Tue Feb 07 17:49:40 2006 +0000 +++ b/include/SDL_windows.h Tue Feb 07 18:36:54 2006 +0000 @@ -24,6 +24,7 @@ #define _SDL_windows_h #include "SDL_config.h" +#include "SDL_types.h" /* This includes only the windows headers needed by SDL, with no C runtime */ #define WIN32_LEAN_AND_MEAN diff -r 2eed9997bd24 -r 7f32b9bede06 src/stdlib/SDL_stdlib.c --- a/src/stdlib/SDL_stdlib.c Tue Feb 07 17:49:40 2006 +0000 +++ b/src/stdlib/SDL_stdlib.c Tue Feb 07 18:36:54 2006 +0000 @@ -31,6 +31,10 @@ #if defined(_MSC_VER) /* Float to long (FIXME!) */ +long _ftol() +{ + return 0; +} long _ftol2_sse() { return 0; diff -r 2eed9997bd24 -r 7f32b9bede06 src/video/e_pow.h --- a/src/video/e_pow.h Tue Feb 07 17:49:40 2006 +0000 +++ b/src/video/e_pow.h Tue Feb 07 18:36:54 2006 +0000 @@ -130,7 +130,7 @@ k = (iy>>20)-0x3ff; /* exponent */ if(k>20) { j = ly>>(52-k); - if((j<<(52-k))==ly) yisint = 2-(j&1); + if((u_int32_t)(j<<(52-k))==ly) yisint = 2-(j&1); } else if(ly==0) { j = iy>>(20-k); if((j<<(20-k))==iy) yisint = 2-(j&1); diff -r 2eed9997bd24 -r 7f32b9bede06 src/video/e_sqrt.h --- a/src/video/e_sqrt.h Tue Feb 07 17:49:40 2006 +0000 +++ b/src/video/e_sqrt.h Tue Feb 07 18:36:54 2006 +0000 @@ -202,7 +202,7 @@ t = s0; if((t