mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-20 08:27:15 +00:00
During the exp-run in bug 208158, it was found that x11-toolkits/wxgtk30
gives errors with libc++ 3.8.0: ./src/stc/scintilla/src/Editor.cxx:5844:6: error: call to 'abs' is ambiguous if (abs(pt1.x - pt2.x) > 3) ^~~ This is because pt1.x and pt2.x are float values, but <cmath> is not included, and abs() for float values comes from that header. Fix it by including <cmath>. Approved by: portmaster@bsdforge.com (maintainer) Approved by: vlad-fbsd@acheronmedia.com (maintainer) PR: 209694 MFH: 2016Q2
This commit is contained in:
parent
c36b984a49
commit
433a48154f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=415729
@ -0,0 +1,10 @@
|
||||
--- src/stc/scintilla/src/Editor.cxx.orig 2014-10-06 21:33:44 UTC
|
||||
+++ src/stc/scintilla/src/Editor.cxx
|
||||
@@ -16,6 +16,7 @@
|
||||
#include <map>
|
||||
#include <algorithm>
|
||||
#include <memory>
|
||||
+#include <cmath>
|
||||
|
||||
#include "Platform.h"
|
||||
|
Loading…
Reference in New Issue
Block a user