--- a/project_files/hwc/rtl/system.c Tue Nov 13 23:56:50 2012 +0100
+++ b/project_files/hwc/rtl/system.c Wed Nov 14 00:23:29 2012 +0100
@@ -4,6 +4,18 @@
#include <stdlib.h>
#include <wchar.h>
+#ifndef M_PI
+// some math.h do not have M_PI macros
+# define M_PI 3.14159265358979323846 /* pi */
+# define M_PI_2 1.57079632679489661923 /* pi/2 */
+# define M_PI_4 0.78539816339744830962 /* pi/4 */
+# define M_PIl 3.1415926535897932384626433832795029L /* pi */
+# define M_PI_2l 1.5707963267948966192313216916397514L /* pi/2 */
+# define M_PI_4l 0.7853981633974483096156608458198757L /* pi/4 */
+#endif
+
+double pi = M_PI;
+
int paramCount;
string255 params[MAX_PARAMS];