commit 94a6eba48c6e27cc0a243b7515b66a76ba63054c
parent 81d7465fb65d23371c8bc333ce628f8e0fe383fb
Author: CNLohr <charles@cnlohr.com>
Date: Wed, 21 Jun 2017 10:48:49 -0400
Update ping.h
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/ping.h b/ping.h
@@ -27,7 +27,11 @@ void ping_setup();
#ifdef WIN32
extern char errbuffer[1024];
+#ifndef _MSC_VER
#define ERRM(x...) { sprintf( errbuffer, x ); MessageBox( 0, errbuffer, "cnping", 0 ); }
+#else
+#define ERRM(...) { sprintf( errbuffer, __VA_ARGS__ ); MessageBox( 0, errbuffer, "cnping", 0 ); }
+#endif
#else