Changeset - r14754:b982b8a4e521
[Not reviewed]
master
0 2 0
yexo - 14 years ago 2010-03-06 15:30:40
yexo@openttd.org
(svn r19352) -Fix (r19332): MSVC doesn't have M_PI in math.h
2 files changed with 5 insertions and 5 deletions:
0 comments (0 inline, 0 general)
src/stdafx.h
Show inline comments
 
@@ -328,6 +328,11 @@ assert_compile(sizeof(uint32) == 4);
 
assert_compile(sizeof(uint16) == 2);
 
assert_compile(sizeof(uint8)  == 1);
 

	
 
#ifndef M_PI_2
 
#define M_PI_2 1.57079632679489661923
 
#define M_PI   3.14159265358979323846
 
#endif /* M_PI_2 */
 

	
 
/**
 
 * Return the length of an fixed size array.
 
 * Unlike sizeof this function returns the number of elements
src/tgp.cpp
Show inline comments
 
@@ -151,11 +151,6 @@
 
 *
 
 */
 

	
 
#ifndef M_PI_2
 
#define M_PI_2 1.57079632679489661923
 
#define M_PI   3.14159265358979323846
 
#endif /* M_PI_2 */
 

	
 
/** Fixed point type for heights */
 
typedef int16 height_t;
 
static const int height_decimal_bits = 4;
0 comments (0 inline, 0 general)