changeset 3255:f8a4214ce90a

Fixed compiling on 64-bit Windows
author Sam Lantinga <slouken@libsdl.org>
date Sun, 06 Sep 2009 04:40:54 +0000
parents 1a8c9a6752e5
children 83c87f2b2aab
files src/stdlib/SDL_stdlib.c
diffstat 1 files changed, 8 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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 */