24696769 wxWidgets needs cmath
authorNorm Jacobs <Norm.Jacobs@Oracle.COM>
Tue, 20 Sep 2016 10:43:56 -0500
changeset 6936 b7d04c4c9133
parent 6935 6b52769f860f
child 6938 64f04bb4c3c3
24696769 wxWidgets needs cmath
components/wxwidgets/patches/001-cmath.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/wxwidgets/patches/001-cmath.patch	Tue Sep 20 10:43:56 2016 -0500
@@ -0,0 +1,15 @@
+#
+# missing <cmath> for std::abs() variants.  This is fixed upstream in 3.5.5 
+# https://github.com/wxWidgets/wxWidgets/commit/9ce192d417eb9eb614bcf8510e91dac318706249
+#
+diff -u -r wxWidgets-3.0.2/src/stc/scintilla/src/Editor.cxx wxWidgets-3.0.2.new/src/stc/scintilla/src/Editor.cxx
+--- wxWidgets-3.0.2/src/stc/scintilla/src/Editor.cxx	2014-10-06 14:33:44.000000000 -0700
++++ wxWidgets-3.0.2.new/src/stc/scintilla/src/Editor.cxx	2016-09-20 08:00:30.896632125 -0700
+@@ -11,6 +11,7 @@
+ #include <ctype.h>
+ #include <assert.h>
+ 
++#include <cmath>
+ #include <string>
+ #include <vector>
+ #include <map>