1
0
mirror of https://github.com/OlafvdSpek/ctemplate.git synced 2025-09-28 19:05:49 +08:00

Fix G++ 4.7 issues

This commit is contained in:
olafvdspek@gmail.com 2012-05-21 21:52:04 +00:00
parent 2fa3b2c937
commit 2250aaa9db
2 changed files with 2 additions and 2 deletions

View File

@ -337,7 +337,7 @@ class @ac_windows_dllexport@ StaticTemplateStringInitializer {
// Don't use this. This is used only in auto-generated .varnames.h files.
#define STS_INIT_WITH_HASH(name, str, hash) \
{ { str, sizeof(""str"")-1, hash } }; \
{ { str, sizeof("" str "")-1, hash } }; \
namespace ctemplate_sts_init { \
static const @ac_google_namespace@::StaticTemplateStringInitializer name##_init(&name); \
}

View File

@ -861,7 +861,7 @@ class TemplateDictionary::DictionaryPrinter {
string GetDictNum(size_t index, size_t size) const {
char buf[64]; // big enough for two ints
snprintf(buf, sizeof(buf), "%" PRIuS" of %" PRIuS, index, size);
snprintf(buf, sizeof(buf), "%" PRIuS " of %" PRIuS, index, size);
return buf;
}