From ce15df5ad4d57f06238223582486a3e6f7e5ce8c Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sun, 6 Sep 2009 04:40:54 +0000 Subject: [PATCH] Fixed compiling on 64-bit Windows --- src/stdlib/SDL_stdlib.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/stdlib/SDL_stdlib.c b/src/stdlib/SDL_stdlib.c index 84f86e95a..29bc192f5 100644 --- a/src/stdlib/SDL_stdlib.c +++ b/src/stdlib/SDL_stdlib.c @@ -28,17 +28,17 @@ #ifndef HAVE_LIBC /* These are some C runtime intrinsics that need to be defined */ -#if defined(_MSC_VER) && !defined(_WIN64) +#if defined(_MSC_VER) #ifndef __FLTUSED__ #define __FLTUSED__ -#ifdef __cplusplus -extern "C" -#endif -__declspec(selectany) - int _fltused = 1; +__declspec(selectany) int _fltused = 1; #endif +#ifdef _WIN64 + +#else + /* Float to long */ void __declspec(naked) @@ -693,6 +693,8 @@ _aullshr() /* *INDENT-ON* */ } +#endif /* _WIN64 */ + #endif /* MSC_VER */ #endif /* !HAVE_LIBC */