[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r36050 - in libmicrohttpd: src/include src/microhttpd w32/V
From: |
gnunet |
Subject: |
[GNUnet-SVN] r36050 - in libmicrohttpd: src/include src/microhttpd w32/VS2013 |
Date: |
Tue, 7 Jul 2015 20:32:33 +0200 |
Author: Karlson2k
Date: 2015-07-07 20:32:33 +0200 (Tue, 07 Jul 2015)
New Revision: 36050
Added:
libmicrohttpd/src/microhttpd/MHD_limits.h
Modified:
libmicrohttpd/src/include/platform.h
libmicrohttpd/src/microhttpd/daemon.c
libmicrohttpd/src/microhttpd/response.c
libmicrohttpd/w32/VS2013/libmicrohttpd.vcxproj
libmicrohttpd/w32/VS2013/libmicrohttpd.vcxproj.filters
Log:
Move all internal limits definitions to MHD_limits.h
Modified: libmicrohttpd/src/include/platform.h
===================================================================
--- libmicrohttpd/src/include/platform.h 2015-07-07 18:32:21 UTC (rev
36049)
+++ libmicrohttpd/src/include/platform.h 2015-07-07 18:32:33 UTC (rev
36050)
@@ -206,12 +206,4 @@
#define IPPROTO_IPV6 IPPROTO_IPV6
#endif
-#ifndef OFF_T_MAX
-#define OFF_T_MAX ((off_t) ~(((uint64_t) 1) << (8 * sizeof(off_t) - 1)))
#endif
-
-#if defined(_LARGEFILE64_SOURCE) && !defined(OFF64_T_MAX)
-#define OFF64_T_MAX ((off64_t) ~(((uint64_t) 1) << (8 * sizeof(off64_t) - 1)))
-#endif
-
-#endif
Added: libmicrohttpd/src/microhttpd/MHD_limits.h
===================================================================
--- libmicrohttpd/src/microhttpd/MHD_limits.h (rev 0)
+++ libmicrohttpd/src/microhttpd/MHD_limits.h 2015-07-07 18:32:33 UTC (rev
36050)
@@ -0,0 +1,49 @@
+/*
+ This file is part of libmicrohttpd
+ Copyright (C) 2015 Karlson2k (Evgeny Grin)
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this library; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
USA
+*/
+
+/**
+ * @file microhttpd/MHD_limits.h
+ * @brief limits values definitions
+ * @author Karlson2k (Evgeny Grin)
+ */
+
+#ifndef MHD_LIMITS_H
+#define MHD_LIMITS_H
+
+#include "platform.h"
+
+#ifdef HAVE_LIMITS_H
+#include <limits.h>
+#endif /* HAVE_LIMITS_H */
+
+
+#ifndef INT32_MAX
+#define INT32_MAX ((int32_t)0x7FFFFFFF)
+#endif /* !INT32_MAX */
+
+#ifndef OFF_T_MAX
+#define OFF_T_MAX ((off_t) ~(((uint64_t) 1) << (8 * sizeof(off_t) - 1)))
+#endif /* !OFF_T_MAX */
+
+#if defined(_LARGEFILE64_SOURCE) && !defined(OFF64_T_MAX)
+#define OFF64_T_MAX ((off64_t) ~(((uint64_t) 1) << (8 * sizeof(off64_t) - 1)))
+#endif /* _LARGEFILE64_SOURCE && !OFF64_T_MAX */
+
+
+#endif /* MHD_LIMITS_H */
Modified: libmicrohttpd/src/microhttpd/daemon.c
===================================================================
--- libmicrohttpd/src/microhttpd/daemon.c 2015-07-07 18:32:21 UTC (rev
36049)
+++ libmicrohttpd/src/microhttpd/daemon.c 2015-07-07 18:32:33 UTC (rev
36050)
@@ -36,7 +36,7 @@
#include "response.h"
#include "connection.h"
#include "memorypool.h"
-#include <limits.h>
+#include "MHD_limits.h"
#include "autoinit_funcs.h"
#if HAVE_SEARCH_H
@@ -117,11 +117,7 @@
#define EPOLL_CLOEXEC 0
#endif
-#ifndef INT32_MAX
-#define INT32_MAX ((int32_t)0x7FFFFFFF)
-#endif /* !INT32_MAX */
-
/**
* Default implementation of the panic function,
* prints an error message and aborts.
Modified: libmicrohttpd/src/microhttpd/response.c
===================================================================
--- libmicrohttpd/src/microhttpd/response.c 2015-07-07 18:32:21 UTC (rev
36049)
+++ libmicrohttpd/src/microhttpd/response.c 2015-07-07 18:32:33 UTC (rev
36050)
@@ -28,7 +28,7 @@
#include "internal.h"
#include "response.h"
-#include <limits.h>
+#include "MHD_limits.h"
#if defined(_WIN32) && defined(MHD_W32_MUTEX_)
#ifndef WIN32_LEAN_AND_MEAN
@@ -305,10 +305,6 @@
}
-#ifndef INT32_MAX
-#define INT32_MAX ((int32_t)0x7FFFFFFF)
-#endif /* !INT32_MAX */
-
/**
* Given a file descriptor, read data from the file
* to generate the response.
Modified: libmicrohttpd/w32/VS2013/libmicrohttpd.vcxproj
===================================================================
--- libmicrohttpd/w32/VS2013/libmicrohttpd.vcxproj 2015-07-07 18:32:21 UTC
(rev 36049)
+++ libmicrohttpd/w32/VS2013/libmicrohttpd.vcxproj 2015-07-07 18:32:33 UTC
(rev 36050)
@@ -92,6 +92,7 @@
<ClInclude Include="..\..\src\microhttpd\internal.h" />
<ClInclude Include="..\..\src\microhttpd\md5.h" />
<ClInclude Include="..\..\src\microhttpd\memorypool.h" />
+ <ClInclude Include="..\..\src\microhttpd\MHD_limits.h" />
<ClInclude Include="..\..\src\microhttpd\reason_phrase.h" />
<ClInclude Include="..\..\src\microhttpd\response.h" />
<ClInclude Include="..\..\src\microhttpd\tsearch.h" />
Modified: libmicrohttpd/w32/VS2013/libmicrohttpd.vcxproj.filters
===================================================================
--- libmicrohttpd/w32/VS2013/libmicrohttpd.vcxproj.filters 2015-07-07
18:32:21 UTC (rev 36049)
+++ libmicrohttpd/w32/VS2013/libmicrohttpd.vcxproj.filters 2015-07-07
18:32:33 UTC (rev 36050)
@@ -105,6 +105,9 @@
<ClInclude Include="..\..\src\include\autoinit_funcs.h">
<Filter>Header Files</Filter>
</ClInclude>
+ <ClInclude Include="..\..\src\microhttpd\MHD_limits.h">
+ <Filter>Source Files</Filter>
+ </ClInclude>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="microhttpd_dll_res_vc.rc">
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r36050 - in libmicrohttpd: src/include src/microhttpd w32/VS2013,
gnunet <=