Mercurial > hg > index.cgi
diff lwlib/lw_win.c @ 547:33e37b3d98cf
Don't build snprintf() emulation on modern enough MSVC
MSVC 2015 and later have a C99 compliant snprintf() so don't build the
emulation function for it if building on a modern enough version.
author | William Astle <lost@l-w.ca> |
---|---|
date | Thu, 16 Mar 2023 16:18:13 -0600 |
parents | 4130ffdeb5c8 |
children |
line wrap: on
line diff
--- a/lwlib/lw_win.c Thu Mar 16 16:03:20 2023 -0600 +++ b/lwlib/lw_win.c Thu Mar 16 16:18:13 2023 -0600 @@ -19,6 +19,8 @@ this program. If not, see <http://www.gnu.org/licenses/>. */ +#if defined(_MSC_VER) && _MSC_VER < 1900 + #include "lw_win.h" #include <stdio.h> @@ -47,3 +49,5 @@ return count; } + +#endif // _MSC_VER < 1900