Work around MSVC compiler intricacies.

This commit is contained in:
Adrian Prantl 2021-06-15 08:17:28 -07:00
parent 80ea006ef9
commit 073e7a08e8
1 changed files with 5 additions and 1 deletions

View File

@ -47,7 +47,11 @@ public:
/// Default constructor.
Timer(Category &category, const char *format, ...)
__attribute__((format(printf, 3, 4)));
#if !defined(_MSC_VER)
// MSVC appears to have trouble recognizing the this argument in the constructor.
__attribute__((format(printf, 3, 4)))
#endif
;
/// Destructor
~Timer();