André Hentschel : kernel32/tests: Fix warning on non-x86 platforms.

Alexandre Julliard julliard at winehq.org
Thu Jul 7 13:33:44 CDT 2011


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

Author: André Hentschel <nerv at dawncrow.de>
Date:   Wed Jul  6 20:08:40 2011 +0200

kernel32/tests: Fix warning on non-x86 platforms.

---

 dlls/kernel32/tests/thread.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/dlls/kernel32/tests/thread.c b/dlls/kernel32/tests/thread.c
index e35e0e4..03983f5 100644
--- a/dlls/kernel32/tests/thread.c
+++ b/dlls/kernel32/tests/thread.c
@@ -1351,19 +1351,16 @@ static void test_ThreadErrorMode(void)
     pSetThreadErrorMode(oldmode, NULL);
 }
 
+#if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))
 static inline void set_fpu_cw(WORD cw)
 {
-#if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))
     __asm__ volatile ("fnclex; fldcw %0" : : "m" (cw));
-#endif
 }
 
 static inline WORD get_fpu_cw(void)
 {
     WORD cw = 0;
-#if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))
     __asm__ volatile ("fnstcw %0" : "=m" (cw));
-#endif
     return cw;
 }
 
@@ -1431,6 +1428,7 @@ static void test_thread_fpu_cw(void)
     cw = get_fpu_cw();
     ok(cw == initial_cw, "Expected FPU control word %#x, got %#x.\n", initial_cw, cw);
 }
+#endif
 
 START_TEST(thread)
 {




More information about the wine-cvs mailing list