mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-11 01:13:14 +01:00
Preparation for next patch. Don't ask about why this is needed.
I hate the preprocessor. Let's just leave it at that.
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
#include <alloca.h>
|
||||
#endif
|
||||
|
||||
#include <math.h>
|
||||
#include <cmath>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <assert.h>
|
||||
@@ -38,13 +38,10 @@
|
||||
#endif
|
||||
|
||||
#if __APPLE__
|
||||
#include <math.h>
|
||||
static double zero = 0;
|
||||
#elif __MINGW32__
|
||||
#include <math.h>
|
||||
static double zero = 0;
|
||||
#elif __GNUC__
|
||||
#include <math.h>
|
||||
#if !(defined (__SVR4) && defined (__sun))
|
||||
#include <bits/nan.h>
|
||||
#include <bits/mathdef.h>
|
||||
@@ -1134,7 +1131,7 @@ Expression *TypeBasic::getProperty(Loc loc, Identifier *ident)
|
||||
// constant folding.
|
||||
volatile d_float80 foo;
|
||||
foo = NAN;
|
||||
if (signbit(foo)) // signbit sometimes, not always, set
|
||||
if (std::signbit(foo)) // signbit sometimes, not always, set
|
||||
foo = -foo; // turn off sign bit
|
||||
fvalue = foo;
|
||||
#elif _MSC_VER
|
||||
|
||||
Reference in New Issue
Block a user