gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r37366 - in libmicrohttpd: src/microhttpd w32/common


From: gnunet
Subject: [GNUnet-SVN] r37366 - in libmicrohttpd: src/microhttpd w32/common
Date: Sat, 25 Jun 2016 14:01:58 +0200

Author: Karlson2k
Date: 2016-06-25 14:01:58 +0200 (Sat, 25 Jun 2016)
New Revision: 37366

Modified:
   libmicrohttpd/src/microhttpd/mhd_str.c
   libmicrohttpd/w32/common/MHD_config.h
Log:
mhd_str: improved compatibility with older compilers, including VS2010, VS2012

Modified: libmicrohttpd/src/microhttpd/mhd_str.c
===================================================================
--- libmicrohttpd/src/microhttpd/mhd_str.c      2016-06-25 12:01:54 UTC (rev 
37365)
+++ libmicrohttpd/src/microhttpd/mhd_str.c      2016-06-25 12:01:58 UTC (rev 
37366)
@@ -271,7 +271,8 @@
 int
 MHD_str_equal_caseless_n_ (const char * const str1, const char * const str2, 
size_t maxlen)
 {
-  for (size_t i = 0; i < maxlen; ++i)
+  size_t i;
+  for (i = 0; i < maxlen; ++i)
     {
       const char c1 = str1[i];
       const char c2 = str2[i];

Modified: libmicrohttpd/w32/common/MHD_config.h
===================================================================
--- libmicrohttpd/w32/common/MHD_config.h       2016-06-25 12:01:54 UTC (rev 
37365)
+++ libmicrohttpd/w32/common/MHD_config.h       2016-06-25 12:01:58 UTC (rev 
37366)
@@ -10,7 +10,11 @@
 #define MSVC 1
 
 /* Define to type which will be used as boolean type. */
+#if _MSC_VER+0 >= 1800
 #define _MHD_bool _Bool
+#else  /* before VS 2013 */
+#define _MHD_bool int
+#endif /* before VS 2013 */
 
 /* Define to 1 if your C compiler supports inline functions. */
 #define INLINE_FUNC 1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]