Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 595090
Collapse All | Expand All

(-)a/src/util/math.h (-1 / +13 lines)
Lines 3-10 Link Here
3
3
4
// Causes MSVC to define M_PI and friends.
4
// Causes MSVC to define M_PI and friends.
5
// http://msdn.microsoft.com/en-us/library/4hwaceh6.aspx
5
// http://msdn.microsoft.com/en-us/library/4hwaceh6.aspx
6
// Our SConscript defines this but check anyway.
7
#ifdef __WINDOWS__
8
#ifndef _USE_MATH_DEFINES
6
#define _USE_MATH_DEFINES
9
#define _USE_MATH_DEFINES
7
#include <cmath>
10
#endif
11
#endif
12
13
#include <math.h>
14
#include <cmath> 
15
// Note: Because of our fpclassify hack, we actualy need to inlude both, 
16
// the c and the c++ version of the math header.  
17
// From GCC 6.1.1 math.h depends on cmath, which failes to compile if included 
18
// after our fpclassify hack 
19
8
#include <algorithm>
20
#include <algorithm>
9
21
10
#include "util/assert.h"
22
#include "util/assert.h"

Return to bug 595090