Fixed issues building 64-bit Windows binary

This commit is contained in:
Sam Lantinga
2009-09-05 23:37:35 +00:00
parent 1578afe5da
commit b856e71f8d
9 changed files with 37 additions and 33 deletions

View File

@@ -28,7 +28,7 @@
#ifndef HAVE_LIBC
/* These are some C runtime intrinsics that need to be defined */
#if defined(_MSC_VER)
#if defined(_MSC_VER) && !defined(_WIN64)
#ifndef __FLTUSED__
#define __FLTUSED__
@@ -40,7 +40,9 @@ __declspec(selectany)
#endif
/* Float to long */
void __declspec(naked) _ftol()
void
__declspec(naked)
_ftol()
{
/* *INDENT-OFF* */
__asm {

View File

@@ -1342,7 +1342,7 @@ SDL_vsnprintf(char *text, size_t maxlen, const char *fmt, va_list ap)
}
*text = '\0';
return (text - textstart);
return (int)(text - textstart);
}
#endif
/* vi: set ts=4 sw=4 expandtab: */