MSVC support

This commit is contained in:
MerryMage 2016-07-12 13:25:33 +01:00
parent 44352680c6
commit 8449deb0bc
8 changed files with 111 additions and 92 deletions

View file

@ -11,7 +11,15 @@
namespace Dynarmic {
namespace Common {
std::string StringFromFormat(const char* format, ...) __attribute__((format(gnu_printf, 1, 2)));
std::string StringFromFormat(
#ifdef _MSC_VER
_Printf_format_string_
#endif
const char* format, ...)
#ifdef __GNUC__
__attribute__((format(gnu_printf, 1, 2)))
#endif
;
} // namespace Common
} // namespace Dynarmic