Mercurial > hg > openttd
changeset 14764:6c9a2c3f21c5 draft
(svn r19352) -Fix (r19332): MSVC doesn't have M_PI in math.h
author | yexo <yexo@openttd.org> |
---|---|
date | Sat, 06 Mar 2010 15:30:40 +0000 (2010-03-06) |
parents | f46adc9839d3 |
children | 2274bdcf3798 |
files | src/stdafx.h src/tgp.cpp |
diffstat | 2 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/stdafx.h +++ b/src/stdafx.h @@ -328,6 +328,11 @@ 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