[Bug 209372] deskutils/easystroke: Fix build with libc++ 3.8.0

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon May 9 19:02:47 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=209372

--- Comment #2 from commit-hook at freebsd.org ---
A commit references this bug:

Author: dim
Date: Mon May  9 19:02:08 UTC 2016
New revision: 414882
URL: https://svnweb.freebsd.org/changeset/ports/414882

Log:
  MFH: r414807

  During the exp-run in bug 208158, it was found that deskutils/easystroke
  gives errors with libc++ 3.8.0:

  handler.cc:536:21: error: static declaration of 'abs' follows non-static
declaration
  static inline float abs(float x) { return x > 0 ? x : -x; }
                      ^
  /usr/include/c++/v1/math.h:646:1: note: previous definition is here
  abs(float __lcpp_x) _NOEXCEPT {return fabsf(__lcpp_x);}
  ^

  This is because easystroke tries to roll its own version of abs(), which
  is already defined in math.h.  Fix this by removing the custom abs().

  Approved by:  portmgr (feld)
  PR:           209372

Changes:
_U  branches/2016Q2/
  branches/2016Q2/deskutils/easystroke/Makefile
  branches/2016Q2/deskutils/easystroke/files/patch-handler.cc

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list