- Fix the last mingw msvc build issues -- just use function forwarders for msvc inste...
authorStefan Ginsberg <stefanginsberg@gmail.com>
Thu, 6 Aug 2009 19:23:44 +0000 (19:23 +0000)
committerStefan Ginsberg <stefanginsberg@gmail.com>
Thu, 6 Aug 2009 19:23:44 +0000 (19:23 +0000)
svn path=/trunk/; revision=42435

reactos/lib/3rdparty/mingw/CRT_fp10.c
reactos/lib/3rdparty/mingw/CRT_fp8.c

index 2c78afb..b809ce0 100644 (file)
@@ -5,6 +5,16 @@
  */
 
 void _fpreset (void)
-  { __asm__ ("fninit" ) ;}
+{ 
+#ifdef __GNUC__
+    __asm__ ("fninit" );
+#else
+    __asm fninit;
+#endif
+}
 
+#ifdef __GNUC__
 void __attribute__ ((alias ("_fpreset"))) fpreset(void);
+#else
+void fpreset(void) { _fpreset(); }
+#endif
index 49f8a1b..817f16f 100644 (file)
@@ -8,4 +8,8 @@ extern void (*_imp___fpreset)(void) ;
 void _fpreset (void)
 { (*_imp___fpreset)(); }
 
+#ifdef __GNUC__
 void __attribute__ ((alias ("_fpreset"))) fpreset(void);
+#else
+void fpreset(void) { _fpreset(); }
+#endif