simplepost.c: fixed compiling with VS before 2015

This commit is contained in:
Evgeny Grin (Karlson2k)
2016-04-11 14:08:15 +00:00
parent 3f856f555b
commit 9c113d780a
+5
View File
@@ -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