Import strstr function from FreeBSD 11 libc
authorLoic Blot <loic.blot@unix-experience.fr>
Wed, 9 Jan 2019 20:14:04 +0000 (21:14 +0100)
committerLoic Blot <loic.blot@unix-experience.fr>
Wed, 9 Jan 2019 23:17:08 +0000 (00:17 +0100)
src/client/tile.cpp

index 233a64e1436c559a1a5e22a1743d8077fe0d4845..4911013aef0899688edfcbeda194ff03967db3b8 100644 (file)
@@ -19,7 +19,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 
 #include "tile.h"
 
-#include <cstring>
 #include <algorithm>
 #include <ICameraSceneNode.h>
 #include "util/string.h"
@@ -1016,9 +1015,9 @@ video::IImage * Align2Npot2(video::IImage * image,
        // Only GLES2 is trusted to correctly report npot support
        // Note: we cache the boolean result. GL context will never change on Android.
        static const bool hasNPotSupport = get_GL_major_version() > 1 &&
-               glGetString(GL_EXTENSIONS) && 
-               strstr(glGetString(GL_EXTENSIONS), "GL_OES_texture_npot");
-       
+               glGetString(GL_EXTENSIONS) &&
+               strstr((char *)glGetString(GL_EXTENSIONS), "GL_OES_texture_npot");
+
        if (hasNPotSupport)
                return image;