From f3c70cc6f2568f0d9d5af83b52c1a37f75e5e56d Mon Sep 17 00:00:00 2001 From: Miller Puckette <msp@ucsd.edu> Date: Thu, 22 May 2008 11:12:18 -0700 Subject: [PATCH] small MSW bugfix --- src/m_class.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/m_class.c b/src/m_class.c index e95926432..aa44022d1 100644 --- a/src/m_class.c +++ b/src/m_class.c @@ -18,6 +18,10 @@ #include <string.h> #include <stdio.h> +#ifdef _MSC_VER /* This is only for Microsoft's compiler, not cygwin, e.g. */ +#define snprintf sprintf_s +#endif + static t_symbol *class_loadsym; /* name under which an extern is invoked */ static void pd_defaultfloat(t_pd *x, t_float f); static void pd_defaultlist(t_pd *x, t_symbol *s, int argc, t_atom *argv); -- GitLab