- Use __MINGW_NOTHROW instead of __attribute__
[reactos.git] / reactos / include / crt / float.h
index e8bf302..25fa05d 100644 (file)
@@ -1,4 +1,4 @@
-/* 
+/*
  * float.h
  * This file has no copyright assigned and is placed in the Public Domain.
  * This file is a part of the mingw-runtime package.
  * NOTE: GCC provides float.h, but it doesn't include the non-standard
  *       stuff for accessing the fp controller. We include_next the
  *       GCC-supplied header and just define the MS-specific extensions
- *       here.     
+ *       here.
  *
  */
 
-#include_next<float.h>
+#if defined(__GNUC__)
+#include <gcc_float.h>
+#elif defined(_MSC_VER)
+#include <msc_float.h>
+#else
+#error
+#endif
 
 #ifndef _MINGW_FLOAT_H_
 #define _MINGW_FLOAT_H_
 
-/* All the headers include this file. */
-#include <_mingw.h>
+#include <crtdefs.h>
 
 /*
  * Functions and definitions for controlling the FPU.
@@ -116,7 +121,7 @@ _CRTIMP unsigned int __cdecl __MINGW_NOTHROW _statusfp (void);      /* Report the FPU
    word to 0x37f (64 bit mantissa precison rather than 53 bit).
    By default, the mingw version of _fpreset sets fp control as
    per fninit. To use the MSVCRT.dll _fpreset, include CRT_fp8.o when
-   building your application.   
+   building your application.
 */
 void __cdecl __MINGW_NOTHROW _fpreset (void);
 void __cdecl __MINGW_NOTHROW fpreset (void);