comparison src/stdlib/SDL_stdlib.c @ 3253:5d7ef5970073

Fixed issues building 64-bit Windows binary
author Sam Lantinga <slouken@libsdl.org>
date Sat, 05 Sep 2009 23:37:35 +0000
parents 99210400e8b9
children f8a4214ce90a
comparison
equal deleted inserted replaced
3252:d2465e21f103 3253:5d7ef5970073
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) 31 #if defined(_MSC_VER) && !defined(_WIN64)
32 32
33 #ifndef __FLTUSED__ 33 #ifndef __FLTUSED__
34 #define __FLTUSED__ 34 #define __FLTUSED__
35 #ifdef __cplusplus 35 #ifdef __cplusplus
36 extern "C" 36 extern "C"
38 __declspec(selectany) 38 __declspec(selectany)
39 int _fltused = 1; 39 int _fltused = 1;
40 #endif 40 #endif
41 41
42 /* Float to long */ 42 /* Float to long */
43 void __declspec(naked) _ftol() 43 void
44 __declspec(naked)
45 _ftol()
44 { 46 {
45 /* *INDENT-OFF* */ 47 /* *INDENT-OFF* */
46 __asm { 48 __asm {
47 push ebp 49 push ebp
48 mov ebp,esp 50 mov ebp,esp