diff options
author | jbeich <jbeich@FreeBSD.org> | 2017-02-01 20:26:06 +0800 |
---|---|---|
committer | jbeich <jbeich@FreeBSD.org> | 2017-02-01 20:26:06 +0800 |
commit | 719bda42dc4e2433af70a63332966a3aada5c94f (patch) | |
tree | ce3886171b483971313ed6c6fc45a641c2bf968b | |
parent | 7e97a8cc9dc4077c22461d96bd200713f806da8c (diff) | |
download | freebsd-ports-gnome-719bda42dc4e2433af70a63332966a3aada5c94f.tar.gz freebsd-ports-gnome-719bda42dc4e2433af70a63332966a3aada5c94f.tar.zst freebsd-ports-gnome-719bda42dc4e2433af70a63332966a3aada5c94f.zip |
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
-rw-r--r-- | games/openbubbles/files/patch-src_BFont.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/games/openbubbles/files/patch-src_BFont.cpp b/games/openbubbles/files/patch-src_BFont.cpp new file mode 100644 index 000000000000..e3335d5e70b4 --- /dev/null +++ b/games/openbubbles/files/patch-src_BFont.cpp @@ -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;
+
|