1 /*
2  * Copyright (c) 2000 Mark B. Allan. All rights reserved.
3  *
4  * "Chromium B.S.U." is free software; you can redistribute
5  * it and/or use it and/or modify it under the terms of the
6  * "Clarified Artistic License"
7  */
8 #ifndef compatibility_h
9 #define compatibility_h
10 
11 #ifndef M_PI
12 #define M_PI	3.14159265358979323846
13 #endif
14 
15 #ifdef _WIN32
16 	#include <windows.h>
17 	/* disable silly 'const double to float truncation' warning */
18 	#pragma warning (disable:4305)
19 	/* disable 'double to float truncation' warning */
20 	#pragma warning (disable:4244)
21 	/* disable 'const int to char truncation'  warning */
22 	#pragma warning (disable:4309)
23 	/* disable 'int to bool'  warning */
24 	#pragma warning (disable:4800)
25 #endif
26 
27 #endif // compatibility_h
28