svn commit: r433011 - head/games/openbubbles/files
Jan Beich
jbeich at FreeBSD.org
Wed Feb 1 12:26:07 UTC 2017
Author: jbeich
Date: Wed Feb 1 12:26:06 2017
New Revision: 433011
URL: https://svnweb.freebsd.org/changeset/ports/433011
Log:
games/openbubbles: unbreak with libc++ 3.9
BFont.cpp:322:14: error: assigning to 'char *' from incompatible type 'const char *'
while ((p=strchr(&text[pos+1],SPACE)) != NULL) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~
BFont.cpp:362:19: error: assigning to 'char *' from incompatible type 'const char *'
p = strstr(&text[pos+1]," ");
^ ~~~~~~~~~~~~~~~~~~~~~~~~
Reported by: pkg-fallout
Added:
head/games/openbubbles/files/
head/games/openbubbles/files/patch-src_BFont.cpp (contents, props changed)
Added: head/games/openbubbles/files/patch-src_BFont.cpp
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/games/openbubbles/files/patch-src_BFont.cpp Wed Feb 1 12:26:06 2017 (r433011)
@@ -0,0 +1,20 @@
+--- src/BFont.cpp.orig 2005-02-27 14:29:13 UTC
++++ src/BFont.cpp
+@@ -314,7 +314,7 @@ int BFont_TextWidthFont(BFont_Info *Font
+ /* counts the spaces of the strings */
+ static int count (const char *text)
+ {
+- char *p = NULL;
++ const char *p = NULL;
+ int pos = -1;
+ int i = 0;
+
+@@ -339,7 +339,7 @@ void BFont_JustifiedPutStringFont(SDL_Su
+ int dif;
+
+ char *strtmp;
+- char *p;
++ const char *p;
+ int pos = -1;
+ int xpos = 0;
+
More information about the svn-ports-head
mailing list