1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-21 06:55:39 +00:00

* nt/cmdproxy.c (_snprintf) [_UCRT]: Redirect to 'snprintf'.

This commit is contained in:
Eli Zaretskii 2024-02-25 08:20:44 +02:00
parent 05116eac0c
commit 782ff2f826

View File

@ -38,6 +38,14 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
#include <string.h> /* strlen */
#include <ctype.h> /* isspace, isalpha */
/* UCRT has a C99-compatible snprintf, and _snprintf is defined inline
in stdio.h, which we don't want to include here. Since the
differences in behavior between snprintf and _snprintf don't matter
in this file, we take the easy way out. */
#ifdef _UCRT
# define _snprintf snprintf
#endif
/* We don't want to include stdio.h because we are already duplicating
lots of it here */
extern int _snprintf (char *buffer, size_t count, const char *format, ...);