# HG changeset patch # User Sam Lantinga # Date 1252212054 0 # Node ID f8a4214ce90a8dad433ca3dc60cc7892654098d0 # Parent 1a8c9a6752e533790c7b69dc0a6de3427bd69e3d Fixed compiling on 64-bit Windows diff -r 1a8c9a6752e5 -r f8a4214ce90a src/stdlib/SDL_stdlib.c --- a/src/stdlib/SDL_stdlib.c Sun Sep 06 04:40:29 2009 +0000 +++ b/src/stdlib/SDL_stdlib.c Sun Sep 06 04:40:54 2009 +0000 @@ -28,16 +28,16 @@ #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" +__declspec(selectany) int _fltused = 1; #endif -__declspec(selectany) - int _fltused = 1; -#endif + +#ifdef _WIN64 + +#else /* Float to long */ void @@ -693,6 +693,8 @@ /* *INDENT-ON* */ } +#endif /* _WIN64 */ + #endif /* MSC_VER */ #endif /* !HAVE_LIBC */