summaryrefslogtreecommitdiff
path: root/doc/examples/simplepost.c
diff options
context:
space:
mode:
Diffstat (limited to 'doc/examples/simplepost.c')
-rw-r--r--doc/examples/simplepost.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/examples/simplepost.c b/doc/examples/simplepost.c
index 248138a0..d167151f 100644
--- a/doc/examples/simplepost.c
+++ b/doc/examples/simplepost.c
@@ -13,6 +13,11 @@
#include <string.h>
#include <stdlib.h>
+#if defined(_MSC_VER) && _MSC_VER+0 <= 1800
+/* Substitution is OK while return value is not used */
+#define snprintf _snprintf
+#endif
+
#define PORT 8888
#define POSTBUFFERSIZE 512
#define MAXNAMESIZE 20