diff --git a/VisualC.zip b/VisualC.zip index b45633921..c7a8ab20c 100644 Binary files a/VisualC.zip and b/VisualC.zip differ diff --git a/include/SDL_types.h b/include/SDL_types.h index c55b4f88a..08e4b5cff 100644 --- a/include/SDL_types.h +++ b/include/SDL_types.h @@ -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 --git a/include/SDL_windows.h b/include/SDL_windows.h index f33fadffc..dff14d0c5 100644 --- a/include/SDL_windows.h +++ b/include/SDL_windows.h @@ -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 --git a/src/stdlib/SDL_stdlib.c b/src/stdlib/SDL_stdlib.c index cb255b688..4e7e7b13c 100644 --- a/src/stdlib/SDL_stdlib.c +++ b/src/stdlib/SDL_stdlib.c @@ -31,6 +31,10 @@ #if defined(_MSC_VER) /* Float to long (FIXME!) */ +long _ftol() +{ + return 0; +} long _ftol2_sse() { return 0; diff --git a/src/video/e_pow.h b/src/video/e_pow.h index 0d6505f0b..e9a5b1659 100644 --- a/src/video/e_pow.h +++ b/src/video/e_pow.h @@ -130,7 +130,7 @@ ivln2_l = 1.92596299112661746887e-08; /* 0x3E54AE0B, 0xF85DDF44 =1/ln2 tail*/ 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 --git a/src/video/e_sqrt.h b/src/video/e_sqrt.h index e5dc1fe16..9a019b087 100644 --- a/src/video/e_sqrt.h +++ b/src/video/e_sqrt.h @@ -202,7 +202,7 @@ static char rcsid[] = "$NetBSD: e_sqrt.c,v 1.8 1995/05/10 20:46:17 jtc Exp $"; t = s0; if((t