Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 May 2016 16:25:21 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r415729 - head/x11-toolkits/wxgtk30/files
Message-ID:  <201605231625.u4NGPLxR091544@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim (src committer)
Date: Mon May 23 16:25:21 2016
New Revision: 415729
URL: https://svnweb.freebsd.org/changeset/ports/415729

Log:
  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

Added:
  head/x11-toolkits/wxgtk30/files/patch-src_stc_scintilla_src_Editor.cxx   (contents, props changed)

Added: head/x11-toolkits/wxgtk30/files/patch-src_stc_scintilla_src_Editor.cxx
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11-toolkits/wxgtk30/files/patch-src_stc_scintilla_src_Editor.cxx	Mon May 23 16:25:21 2016	(r415729)
@@ -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"
+ 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605231625.u4NGPLxR091544>