--- 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];
--- a/share/CMakeLists.txt Tue Nov 13 23:56:50 2012 +0100
+++ b/share/CMakeLists.txt Wed Nov 14 00:23:29 2012 +0100
@@ -20,8 +20,8 @@
DESTINATION ../)
install(PROGRAMS "${CMAKE_CURRENT_SOURCE_DIR}/Icon.icns"
DESTINATION ../Resources/)
- install(PROGRAMS "${CMAKE_CURRENT_SOURCE_DIR}/share/hwico.icns"
+ install(PROGRAMS "${CMAKE_CURRENT_SOURCE_DIR}/hwico.icns"
DESTINATION ../Resources/)
- install(PROGRAMS "${CMAKE_CURRENT_SOURCE_DIR}/share/dsa_pub.pem"
+ install(PROGRAMS "${CMAKE_CURRENT_SOURCE_DIR}/dsa_pub.pem"
DESTINATION ../Resources/)
ENDIF(APPLE OR CROSSAPPLE)