Fixed compiling on 64-bit Windows
authorSam Lantinga <slouken@libsdl.org>
Sun, 06 Sep 2009 04:40:54 +0000
changeset 3255f8a4214ce90a
parent 3254 1a8c9a6752e5
child 3256 83c87f2b2aab
Fixed compiling on 64-bit Windows
src/stdlib/SDL_stdlib.c
     1.1 --- a/src/stdlib/SDL_stdlib.c	Sun Sep 06 04:40:29 2009 +0000
     1.2 +++ b/src/stdlib/SDL_stdlib.c	Sun Sep 06 04:40:54 2009 +0000
     1.3 @@ -28,16 +28,16 @@
     1.4  #ifndef HAVE_LIBC
     1.5  /* These are some C runtime intrinsics that need to be defined */
     1.6  
     1.7 -#if defined(_MSC_VER) && !defined(_WIN64)
     1.8 +#if defined(_MSC_VER)
     1.9  
    1.10  #ifndef __FLTUSED__
    1.11  #define __FLTUSED__
    1.12 -#ifdef __cplusplus
    1.13 -extern "C"
    1.14 +__declspec(selectany) int _fltused = 1;
    1.15  #endif
    1.16 -__declspec(selectany)
    1.17 -     int _fltused = 1;
    1.18 -#endif
    1.19 +
    1.20 +#ifdef _WIN64
    1.21 +
    1.22 +#else
    1.23  
    1.24  /* Float to long */
    1.25  void
    1.26 @@ -693,6 +693,8 @@
    1.27      /* *INDENT-ON* */
    1.28  }
    1.29  
    1.30 +#endif /* _WIN64 */
    1.31 +
    1.32  #endif /* MSC_VER */
    1.33  
    1.34  #endif /* !HAVE_LIBC */