Fix build with libc++ 3.8.0 by removing conflicting re-definition of abs().

PR:		209612
Submitted by:	dim
This commit is contained in:
Ganael LAPLANCHE 2016-05-20 20:28:29 +00:00
parent d8a8e3e66a
commit 05d922f344
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=415575
2 changed files with 20 additions and 0 deletions

View File

@ -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) {

View File

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