1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +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:
Dimitry Andric 2016-05-23 16:25:21 +00:00
parent c36b984a49
commit 433a48154f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=415729

View File

@ -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"