include: Don't use floating point for WINAPI functions when building for soft-float on ARM.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2017-12-08 12:43:19 +01:00
parent 364e04ce0c
commit 5c50ec0c74
2 changed files with 6 additions and 6 deletions

View file

@ -60,7 +60,7 @@
# else # else
# define __stdcall __attribute__((ms_abi)) # define __stdcall __attribute__((ms_abi))
# endif # endif
# elif defined(__arm__) && defined (__GNUC__) # elif defined(__arm__) && defined (__GNUC__) && !defined(__SOFTFP__)
# define __stdcall __attribute__((pcs("aapcs-vfp"))) # define __stdcall __attribute__((pcs("aapcs-vfp")))
# else /* __i386__ */ # else /* __i386__ */
# define __stdcall # define __stdcall
@ -80,7 +80,7 @@
# else # else
# define __cdecl __attribute__((ms_abi)) # define __cdecl __attribute__((ms_abi))
# endif # endif
# elif defined(__arm__) && defined (__GNUC__) # elif defined(__arm__) && defined (__GNUC__) && !defined(__SOFTFP__)
# define __cdecl __attribute__((pcs("aapcs-vfp"))) # define __cdecl __attribute__((pcs("aapcs-vfp")))
# elif !defined(_MSC_VER) # elif !defined(_MSC_VER)
# define __cdecl # define __cdecl
@ -106,7 +106,7 @@
#endif #endif
#ifndef WINAPIV #ifndef WINAPIV
# if defined(__arm__) && defined (__GNUC__) # if defined(__arm__) && defined (__GNUC__) && !defined(__SOFTFP__)
# define WINAPIV __attribute__((pcs("aapcs"))) # define WINAPIV __attribute__((pcs("aapcs")))
# else # else
# define WINAPIV __cdecl # define WINAPIV __cdecl

View file

@ -69,7 +69,7 @@ extern "C" {
# else # else
# define __stdcall __attribute__((ms_abi)) # define __stdcall __attribute__((ms_abi))
# endif # endif
# elif defined(__arm__) && defined (__GNUC__) # elif defined(__arm__) && defined (__GNUC__) && !defined(__SOFTFP__)
# define __stdcall __attribute__((pcs("aapcs-vfp"))) # define __stdcall __attribute__((pcs("aapcs-vfp")))
# else /* __i386__ */ # else /* __i386__ */
# define __stdcall # define __stdcall
@ -89,7 +89,7 @@ extern "C" {
# else # else
# define __cdecl __attribute__((ms_abi)) # define __cdecl __attribute__((ms_abi))
# endif # endif
# elif defined(__arm__) && defined (__GNUC__) # elif defined(__arm__) && defined (__GNUC__) && !defined(__SOFTFP__)
# define __cdecl __attribute__((pcs("aapcs-vfp"))) # define __cdecl __attribute__((pcs("aapcs-vfp")))
# elif !defined(_MSC_VER) # elif !defined(_MSC_VER)
# define __cdecl # define __cdecl
@ -114,7 +114,7 @@ extern "C" {
# endif # endif
#endif #endif
#if defined(__arm__) && defined (__GNUC__) #if defined(__arm__) && defined (__GNUC__) && !defined(__SOFTFP__)
# define WINAPIV __attribute__((pcs("aapcs"))) # define WINAPIV __attribute__((pcs("aapcs")))
#else #else
# define WINAPIV __cdecl # define WINAPIV __cdecl