[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r37016 - libmicrohttpd/doc/examples
From: |
gnunet |
Subject: |
[GNUnet-SVN] r37016 - libmicrohttpd/doc/examples |
Date: |
Mon, 11 Apr 2016 16:08:18 +0200 |
Author: Karlson2k
Date: 2016-04-11 16:08:18 +0200 (Mon, 11 Apr 2016)
New Revision: 37016
Modified:
libmicrohttpd/doc/examples/largepost.c
Log:
largepost.c: fixed compiling by VS
Modified: libmicrohttpd/doc/examples/largepost.c
===================================================================
--- libmicrohttpd/doc/examples/largepost.c 2016-04-11 14:08:15 UTC (rev
37015)
+++ libmicrohttpd/doc/examples/largepost.c 2016-04-11 14:08:18 UTC (rev
37016)
@@ -13,6 +13,17 @@
#include <string.h>
#include <microhttpd.h>
+#ifdef _MSC_VER
+#ifndef strcasecmp
+#define strcasecmp(a,b) _stricmp((a),(b))
+#endif /* !strcasecmp */
+#endif /* _MSC_VER */
+
+#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 MAXCLIENTS 2
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r37016 - libmicrohttpd/doc/examples,
gnunet <=