Commit 80444aef authored by Sam Lantinga's avatar Sam Lantinga

Fixes for Visual C++ 6.0

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401349
parent 3a030bf6
No preview for this file type
...@@ -27,7 +27,9 @@ ...@@ -27,7 +27,9 @@
#include <sys/types.h> #include <sys/types.h>
#ifdef _MSC_VER #ifdef _MSC_VER
#include <crtdefs.h> /* For size_t */ /* FIXME!! */
typedef unsigned int size_t;
typedef size_t uintptr_t;
#endif #endif
/* The number of elements in an array */ /* The number of elements in an array */
......
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#define _SDL_windows_h #define _SDL_windows_h
#include "SDL_config.h" #include "SDL_config.h"
#include "SDL_types.h"
/* This includes only the windows headers needed by SDL, with no C runtime */ /* This includes only the windows headers needed by SDL, with no C runtime */
#define WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN
......
...@@ -31,6 +31,10 @@ ...@@ -31,6 +31,10 @@
#if defined(_MSC_VER) #if defined(_MSC_VER)
/* Float to long (FIXME!) */ /* Float to long (FIXME!) */
long _ftol()
{
return 0;
}
long _ftol2_sse() long _ftol2_sse()
{ {
return 0; return 0;
......
...@@ -130,7 +130,7 @@ ivln2_l = 1.92596299112661746887e-08; /* 0x3E54AE0B, 0xF85DDF44 =1/ln2 tail*/ ...@@ -130,7 +130,7 @@ ivln2_l = 1.92596299112661746887e-08; /* 0x3E54AE0B, 0xF85DDF44 =1/ln2 tail*/
k = (iy>>20)-0x3ff; /* exponent */ k = (iy>>20)-0x3ff; /* exponent */
if(k>20) { if(k>20) {
j = ly>>(52-k); 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) { } else if(ly==0) {
j = iy>>(20-k); j = iy>>(20-k);
if((j<<(20-k))==iy) yisint = 2-(j&1); if((j<<(20-k))==iy) yisint = 2-(j&1);
......
...@@ -202,7 +202,7 @@ static char rcsid[] = "$NetBSD: e_sqrt.c,v 1.8 1995/05/10 20:46:17 jtc Exp $"; ...@@ -202,7 +202,7 @@ static char rcsid[] = "$NetBSD: e_sqrt.c,v 1.8 1995/05/10 20:46:17 jtc Exp $";
t = s0; t = s0;
if((t<ix0)||((t==ix0)&&(t1<=ix1))) { if((t<ix0)||((t==ix0)&&(t1<=ix1))) {
s1 = t1+r; s1 = t1+r;
if(((t1&sign)==sign)&&(s1&sign)==0) s0 += 1; if(((int32_t)(t1&sign)==sign)&&(s1&sign)==0) s0 += 1;
ix0 -= t; ix0 -= t;
if (ix1 < t1) ix0 -= 1; if (ix1 < t1) ix0 -= 1;
ix1 -= t1; ix1 -= t1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment