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:
parent
2fa3b2c937
commit
2250aaa9db
|
@ -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); \
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user