Mercurial > hg > index.cgi
comparison 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 |
comparison
equal
deleted
inserted
replaced
546:80b21c6b4a6b | 547:33e37b3d98cf |
---|---|
16 more details. | 16 more details. |
17 | 17 |
18 You should have received a copy of the GNU General Public License along with | 18 You should have received a copy of the GNU General Public License along with |
19 this program. If not, see <http://www.gnu.org/licenses/>. | 19 this program. If not, see <http://www.gnu.org/licenses/>. |
20 */ | 20 */ |
21 | |
22 #if defined(_MSC_VER) && _MSC_VER < 1900 | |
21 | 23 |
22 #include "lw_win.h" | 24 #include "lw_win.h" |
23 | 25 |
24 #include <stdio.h> | 26 #include <stdio.h> |
25 #include <stdarg.h> | 27 #include <stdarg.h> |
45 count = c99_vsnprintf(str, size, format, ap); | 47 count = c99_vsnprintf(str, size, format, ap); |
46 va_end(ap); | 48 va_end(ap); |
47 | 49 |
48 return count; | 50 return count; |
49 } | 51 } |
52 | |
53 #endif // _MSC_VER < 1900 |