Fixed compiling on 64-bit Windows
authorSam Lantinga <slouken@libsdl.org>
Sun, 06 Sep 2009 04:40:54 +0000
changeset 3255 f8a4214ce90a
parent 3254 1a8c9a6752e5
child 3256 83c87f2b2aab
Fixed compiling on 64-bit Windows
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 */