src/stdlib/SDL_stdlib.c
changeset 3255 f8a4214ce90a
parent 3253 5d7ef5970073
child 3697 f7b03b6838cb
equal deleted inserted replaced
3254:1a8c9a6752e5 3255:f8a4214ce90a
    26 #include "SDL_stdinc.h"
    26 #include "SDL_stdinc.h"
    27 
    27 
    28 #ifndef HAVE_LIBC
    28 #ifndef HAVE_LIBC
    29 /* These are some C runtime intrinsics that need to be defined */
    29 /* These are some C runtime intrinsics that need to be defined */
    30 
    30 
    31 #if defined(_MSC_VER) && !defined(_WIN64)
    31 #if defined(_MSC_VER)
    32 
    32 
    33 #ifndef __FLTUSED__
    33 #ifndef __FLTUSED__
    34 #define __FLTUSED__
    34 #define __FLTUSED__
    35 #ifdef __cplusplus
    35 __declspec(selectany) int _fltused = 1;
    36 extern "C"
       
    37 #endif
    36 #endif
    38 __declspec(selectany)
    37 
    39      int _fltused = 1;
    38 #ifdef _WIN64
    40 #endif
    39 
       
    40 #else
    41 
    41 
    42 /* Float to long */
    42 /* Float to long */
    43 void
    43 void
    44 __declspec(naked)
    44 __declspec(naked)
    45 _ftol()
    45 _ftol()
   691         ret
   691         ret
   692     }
   692     }
   693     /* *INDENT-ON* */
   693     /* *INDENT-ON* */
   694 }
   694 }
   695 
   695 
       
   696 #endif /* _WIN64 */
       
   697 
   696 #endif /* MSC_VER */
   698 #endif /* MSC_VER */
   697 
   699 
   698 #endif /* !HAVE_LIBC */
   700 #endif /* !HAVE_LIBC */
   699 
   701 
   700 /* vi: set ts=4 sw=4 expandtab: */
   702 /* vi: set ts=4 sw=4 expandtab: */