mirror of
https://github.com/yawut/SDL.git
synced 2026-09-07 16:45:57 -05:00
Fixed issues building 64-bit Windows binary
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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: */
|
||||
|
||||
Reference in New Issue
Block a user