From 75a3e5db015c05699d0e9f2314801ace505fbd48 Mon Sep 17 00:00:00 2001 From: Miku AuahDark Date: Sat, 25 Sep 2021 08:17:41 +0800 Subject: [PATCH] Fix VS2013 compilation of a066e18. --- src/modules/love/love.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/modules/love/love.cpp b/src/modules/love/love.cpp index e6e369802..a437beaa0 100644 --- a/src/modules/love/love.cpp +++ b/src/modules/love/love.cpp @@ -33,6 +33,12 @@ #ifdef LOVE_WINDOWS #include + +#if defined(_MSC_VER) && (_MSC_VER < 1900) +// VS 2013 and earlier doesn't have snprintf +#define snprintf sprintf_s +#endif // defined(_MSC_VER) && (_MSC_VER < 1900) + #endif // LOVE_WINDOWS #ifdef LOVE_ANDROID