aboutsummaryrefslogtreecommitdiff
path: root/shared/common/loud.c
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2013-01-22 17:14:14 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2013-01-22 17:14:14 +0000
commit44e4dadbfdd1118ff5a64d6195eaa168c29405a3 (patch)
treedcc1567f770147cc60635288818fa626e286f8f4 /shared/common/loud.c
parenteae942b7b4ed36f5f43edd20ae6abd9e923b96c0 (diff)
replace MSW with proper macro: _WIN32 (http://msdn.microsoft.com/en-us/library/ff540443.aspx)
svn path=/trunk/externals/miXed/; revision=16955
Diffstat (limited to 'shared/common/loud.c')
-rw-r--r--shared/common/loud.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/shared/common/loud.c b/shared/common/loud.c
index 7129962..d21334e 100644
--- a/shared/common/loud.c
+++ b/shared/common/loud.c
@@ -9,7 +9,7 @@
#include "m_pd.h"
#include "loud.h"
-#ifdef MSW
+#ifdef _WIN32
#define vsnprintf _vsnprintf
#endif
@@ -354,7 +354,7 @@ void loudbug_post(char *fmt, ...)
vsnprintf(buf, MAXPDSTRING-1, fmt, ap);
va_end(ap);
fprintf(stderr, "%s\n", buf);
-#ifdef MSW
+#ifdef _WIN32
fflush(stderr);
#endif
}
@@ -367,7 +367,7 @@ void loudbug_startpost(char *fmt, ...)
vsnprintf(buf, MAXPDSTRING-1, fmt, ap);
va_end(ap);
fputs(buf, stderr);
-#ifdef MSW
+#ifdef _WIN32
fflush(stderr);
#endif
}
@@ -375,7 +375,7 @@ void loudbug_startpost(char *fmt, ...)
void loudbug_stringpost(char *s)
{
fputs(s, stderr);
-#ifdef MSW
+#ifdef _WIN32
fflush(stderr);
#endif
}
@@ -383,7 +383,7 @@ void loudbug_stringpost(char *s)
void loudbug_endpost(void)
{
fputs("\n", stderr);
-#ifdef MSW
+#ifdef _WIN32
fflush(stderr);
#endif
}
@@ -395,7 +395,7 @@ void loudbug_postatom(int ac, t_atom *av)
char buf[MAXPDSTRING];
atom_string(av++, buf, MAXPDSTRING);
fprintf(stderr, " %s", buf);
-#ifdef MSW
+#ifdef _WIN32
fflush(stderr);
#endif
}
@@ -417,7 +417,7 @@ void loudbug_postbinbuf(t_binbuf *bb)
fprintf(stderr, " %s", buf);
}
else fprintf(stderr, "%s", buf);
-#ifdef MSW
+#ifdef _WIN32
fflush(stderr);
#endif
aprev = ap++;
@@ -425,7 +425,7 @@ void loudbug_postbinbuf(t_binbuf *bb)
if (aprev)
{
fputs("\n", stderr);
-#ifdef MSW
+#ifdef _WIN32
fflush(stderr);
#endif
}
@@ -439,7 +439,7 @@ void loudbug_bug(char *fmt, ...)
vsnprintf(buf, MAXPDSTRING-1, fmt, ap);
va_end(ap);
fprintf(stderr, "miXed consistency check failed: %s\n", buf);
-#ifdef MSW
+#ifdef _WIN32
fflush(stderr);
#endif
bug(buf);