[core] Added MBGL_CONSTEXPR to satisfy GCC 4.9

This commit is contained in:
Bruno de Oliveira Abinader
2017-07-11 15:32:51 +03:00
parent d918f8d7c2
commit 6282b28b6f
7 changed files with 32 additions and 18 deletions

View File

@@ -1,12 +1,13 @@
#include <mbgl/gl/gl.hpp>
#include <mbgl/util/string.hpp>
#include <mbgl/util/util.hpp>
namespace mbgl {
namespace gl {
namespace {
constexpr const char* stringFromError(GLenum err) {
MBGL_CONSTEXPR const char* stringFromError(GLenum err) {
switch (err) {
case GL_INVALID_ENUM:
return "GL_INVALID_ENUM";