Skip to content

Commit 65ecffb

Browse files
committed
Fix problem with MSVC 19
"error C2039: '_snprintf': is not a member of 'std'"
1 parent 5042514 commit 65ecffb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/SQLiteCpp/Utils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,6 @@ const nullptr_t nullptr = {};
6464
#endif // _MSC_VER
6565

6666
// A macro for snprintf support in Visual Studio
67-
#if _MSC_VER
67+
#if defined(_MSC_VER) && _MSC_VER < 1500
6868
#define snprintf _snprintf
6969
#endif

0 commit comments

Comments
 (0)