clang support

This commit is contained in:
MerryMage
2016-07-12 14:31:43 +01:00
parent 8449deb0bc
commit 619b451902
6 changed files with 5 additions and 6 deletions

View File

@@ -46,7 +46,7 @@ void LogMessage(Class log_class, Level log_level,
_Printf_format_string_
#endif
const char* format, ...)
#ifdef __GNUC__
#if defined(__GNUC__) && !defined(__clang__)
__attribute__((format(gnu_printf, 6, 7)))
#endif
;

View File

@@ -16,7 +16,7 @@ std::string StringFromFormat(
_Printf_format_string_
#endif
const char* format, ...)
#ifdef __GNUC__
#if defined(__GNUC__) && !defined(__clang__)
__attribute__((format(gnu_printf, 1, 2)))
#endif
;