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

Alexandre Julliard julliard at winehq.org
Fri Dec 8 13:51:29 CST 2017


Module: wine
Branch: master
Commit: 5c50ec0c747c1d1406e21304357f1a132b24861c
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=5c50ec0c747c1d1406e21304357f1a132b24861c

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Fri Dec  8 12:43:19 2017 +0100

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

Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 include/msvcrt/crtdefs.h | 6 +++---
 include/windef.h         | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/include/msvcrt/crtdefs.h b/include/msvcrt/crtdefs.h
index ff0f4bd..a9edef5 100644
--- a/include/msvcrt/crtdefs.h
+++ b/include/msvcrt/crtdefs.h
@@ -60,7 +60,7 @@
 #  else
 #   define __stdcall __attribute__((ms_abi))
 #  endif
-# elif defined(__arm__) && defined (__GNUC__)
+# elif defined(__arm__) && defined (__GNUC__) && !defined(__SOFTFP__)
 #   define __stdcall __attribute__((pcs("aapcs-vfp")))
 # else  /* __i386__ */
 #  define __stdcall
@@ -80,7 +80,7 @@
 #  else
 #   define __cdecl __attribute__((ms_abi))
 #  endif
-# elif defined(__arm__) && defined (__GNUC__)
+# elif defined(__arm__) && defined (__GNUC__) && !defined(__SOFTFP__)
 #   define __cdecl __attribute__((pcs("aapcs-vfp")))
 # elif !defined(_MSC_VER)
 #  define __cdecl
@@ -106,7 +106,7 @@
 #endif
 
 #ifndef WINAPIV
-# if defined(__arm__) && defined (__GNUC__)
+# if defined(__arm__) && defined (__GNUC__) && !defined(__SOFTFP__)
 #  define WINAPIV __attribute__((pcs("aapcs")))
 # else
 #  define WINAPIV __cdecl
diff --git a/include/windef.h b/include/windef.h
index d2afcf4..8a9f944 100644
--- a/include/windef.h
+++ b/include/windef.h
@@ -69,7 +69,7 @@ extern "C" {
 #  else
 #   define __stdcall __attribute__((ms_abi))
 #  endif
-# elif defined(__arm__) && defined (__GNUC__)
+# elif defined(__arm__) && defined (__GNUC__) && !defined(__SOFTFP__)
 #   define __stdcall __attribute__((pcs("aapcs-vfp")))
 # else  /* __i386__ */
 #  define __stdcall
@@ -89,7 +89,7 @@ extern "C" {
 #  else
 #   define __cdecl __attribute__((ms_abi))
 #  endif
-# elif defined(__arm__) && defined (__GNUC__)
+# elif defined(__arm__) && defined (__GNUC__) && !defined(__SOFTFP__)
 #   define __cdecl __attribute__((pcs("aapcs-vfp")))
 # elif !defined(_MSC_VER)
 #  define __cdecl
@@ -114,7 +114,7 @@ extern "C" {
 # endif
 #endif
 
-#if defined(__arm__) && defined (__GNUC__)
+#if defined(__arm__) && defined (__GNUC__) && !defined(__SOFTFP__)
 # define WINAPIV __attribute__((pcs("aapcs")))
 #else
 # define WINAPIV __cdecl




More information about the wine-cvs mailing list