branch update for HEAD-2003021201
[reactos.git] / lib / crtdll / float / cntrlfp.c
index 2ebdb0a..0019f84 100644 (file)
@@ -1,6 +1,6 @@
 /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
 
-#include <crtdll/float.h>
+#include <msvcrt/float.h>
 
 unsigned int   _controlfp (unsigned int unNew, unsigned int unMask)
 {      
@@ -9,8 +9,8 @@ unsigned int    _controlfp (unsigned int unNew, unsigned int unMask)
 
 unsigned int   _control87 (unsigned int unNew, unsigned int unMask)
 {      
-
 register unsigned int __res;
+#ifdef __GNUC__
 __asm__ __volatile__ (
        "pushl  %%eax \n\t"             /* make room on stack */
        "fstcw  (%%esp) \n\t"
@@ -30,9 +30,8 @@ __asm__ __volatile__ (
        "fldcw  (%%esp) \n\t"
        "popl   %%edx \n\t"
 
-
        :"=r" (__res):"r" (unNew),"r" (unMask): "ax", "dx", "cx");
-/*     :"=a" (__res):"c" (unNew),"d" (unMask):"ax", "dx", "cx"); */
-
+#else
+#endif /*__GNUC__*/
        return __res;
 }