Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 May 2016 20:28:30 +0000 (UTC)
From:      Ganael LAPLANCHE <martymac@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r415575 - head/games/trackballs/files
Message-ID:  <201605202028.u4KKSUr4040084@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: martymac
Date: Fri May 20 20:28:29 2016
New Revision: 415575
URL: https://svnweb.freebsd.org/changeset/ports/415575

Log:
  Fix build with libc++ 3.8.0 by removing conflicting re-definition of abs().
  
  PR:		209612
  Submitted by:	dim

Added:
  head/games/trackballs/files/patch-src_glHelp.cc   (contents, props changed)
  head/games/trackballs/files/patch-src_menuMode.cc   (contents, props changed)

Added: head/games/trackballs/files/patch-src_glHelp.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/trackballs/files/patch-src_glHelp.cc	Fri May 20 20:28:29 2016	(r415575)
@@ -0,0 +1,10 @@
+--- src/glHelp.cc.orig	2007-04-07 13:15:09 UTC
++++ src/glHelp.cc
+@@ -129,7 +129,6 @@ void drawSurface(SDL_Surface *surface,in
+   // why is this removed? should it not be done???
+   glDeleteTextures(1,&texture);  
+ }
+-inline Real abs(Real v) {return v>0.0?v:-v;}
+ double mousePointerPhase=0.0;
+ 
+ void tickMouse(Real td) {

Added: head/games/trackballs/files/patch-src_menuMode.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/trackballs/files/patch-src_menuMode.cc	Fri May 20 20:28:29 2016	(r415575)
@@ -0,0 +1,10 @@
+--- src/menuMode.cc.orig	2007-04-07 13:16:26 UTC
++++ src/menuMode.cc
+@@ -163,7 +163,6 @@ void MenuMode::doSelection() {
+   case MENU_EDITOR: GameMode::activate(EditMode::editMode); break;
+   }
+ }
+-inline Real abs(Real v) {return v>0.0?v:-v;}
+ 
+ void MenuMode::idle(Real td) {
+   int w,h,i,x,y;



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