add user agent header

fixes #628
This commit is contained in:
Konstantin Käfer
2014-12-08 10:56:00 +01:00
parent de098591c5
commit 1f91be988b
4 changed files with 7 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
#include <mbgl/util/constants.hpp>
const float mbgl::util::tileSize = 512.0f;
const char *mbgl::util::userAgent = "MapboxGL/1.0 (+https://mapbox.com/mapbox-gl/)";
#if defined(DEBUG)
const bool mbgl::debug::tileParseWarnings = false;

View File

@@ -1,31 +0,0 @@
#ifndef MBGL_UTIL_CONSTANTS
#define MBGL_UTIL_CONSTANTS
#include <cmath>
namespace mbgl {
namespace util {
extern const float tileSize;
}
namespace debug {
extern const bool tileParseWarnings;
extern const bool styleParseWarnings;
extern const bool spriteWarnings;
extern const bool renderWarnings;
extern const bool renderTree;
extern const bool labelTextMissingWarning;
extern const bool missingFontStackWarning;
extern const bool missingFontFaceWarning;
extern const bool glyphWarning;
extern const bool shapingWarning;
}
}
#endif