mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 01:15:09 +00:00
Visual C++ doesn't like division by zero in constants: for now, don't define NAN, HUGE_VAL, HUGE_VALF, INFINITY for Visual C++
svn path=/trunk/; revision=42449
This commit is contained in:
parent
2161df104c
commit
7d62f33141
1 changed files with 2 additions and 0 deletions
|
@ -239,10 +239,12 @@ extern "C" {
|
||||||
#if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) \
|
#if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) \
|
||||||
|| !defined __STRICT_ANSI__ || defined __GLIBCPP__
|
|| !defined __STRICT_ANSI__ || defined __GLIBCPP__
|
||||||
|
|
||||||
|
#if !defined(_MSC_VER)
|
||||||
#define NAN (0.0F/0.0F)
|
#define NAN (0.0F/0.0F)
|
||||||
#define HUGE_VALF (1.0F/0.0F)
|
#define HUGE_VALF (1.0F/0.0F)
|
||||||
#define HUGE_VALL (1.0L/0.0L)
|
#define HUGE_VALL (1.0L/0.0L)
|
||||||
#define INFINITY (1.0F/0.0F)
|
#define INFINITY (1.0F/0.0F)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#define FP_NAN 0x0100
|
#define FP_NAN 0x0100
|
||||||
|
|
Loading…
Reference in a new issue