aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2021-10-29 10:19:35 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2021-10-29 10:19:35 +0300
commitb5fd82df3f06cd27973ac19e7fbd00a63ebb381b (patch)
treea01230eea5f7045907d91fcaff1512178a0d7384
parent2e39c6b9de6ffee4f3f01ac04838626c2c2403c4 (diff)
downloadlibmicrohttpd-b5fd82df3f06cd27973ac19e7fbd00a63ebb381b.tar.gz
libmicrohttpd-b5fd82df3f06cd27973ac19e7fbd00a63ebb381b.zip
microhttpd.h: cosmetics
-rw-r--r--src/include/microhttpd.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h
index ded6577f..4267f33d 100644
--- a/src/include/microhttpd.h
+++ b/src/include/microhttpd.h
@@ -233,8 +233,8 @@ typedef SOCKET MHD_socket;
233#define _MHD_INSTRMACRO(a) #a 233#define _MHD_INSTRMACRO(a) #a
234#define _MHD_STRMACRO(a) _MHD_INSTRMACRO (a) 234#define _MHD_STRMACRO(a) _MHD_INSTRMACRO (a)
235/* deprecation message */ 235/* deprecation message */
236#define _MHD_DEPR_MACRO(msg) __pragma(message (__FILE__ "(" _MHD_STRMACRO ( \ 236#define _MHD_DEPR_MACRO(msg) \
237 __LINE__) "): warning: " msg)) 237 __pragma(message (__FILE__ "(" _MHD_STRMACRO ( __LINE__) "): warning: " msg))
238#define _MHD_DEPR_IN_MACRO(msg) _MHD_DEPR_MACRO (msg) 238#define _MHD_DEPR_IN_MACRO(msg) _MHD_DEPR_MACRO (msg)
239#elif defined(__clang__) || defined (__GNUC_PATCHLEVEL__) 239#elif defined(__clang__) || defined (__GNUC_PATCHLEVEL__)
240/* clang or GCC since 3.0 */ 240/* clang or GCC since 3.0 */
@@ -277,7 +277,7 @@ typedef SOCKET MHD_socket;
277/* VS 2005 or later */ 277/* VS 2005 or later */
278#define _MHD_DEPR_FUNC(msg) __declspec(deprecated (msg)) 278#define _MHD_DEPR_FUNC(msg) __declspec(deprecated (msg))
279#elif defined(_MSC_FULL_VER) && _MSC_VER + 0 >= 1310 279#elif defined(_MSC_FULL_VER) && _MSC_VER + 0 >= 1310
280/* VS .NET 2003 deprecation do not support custom messages */ 280/* VS .NET 2003 deprecation does not support custom messages */
281#define _MHD_DEPR_FUNC(msg) __declspec(deprecated) 281#define _MHD_DEPR_FUNC(msg) __declspec(deprecated)
282#elif (__GNUC__ + 0 >= 5) || (defined (__clang__) && \ 282#elif (__GNUC__ + 0 >= 5) || (defined (__clang__) && \
283 (__clang_major__ + 0 > 2 || \ 283 (__clang_major__ + 0 > 2 || \
@@ -287,7 +287,7 @@ typedef SOCKET MHD_socket;
287#elif defined (__clang__) || __GNUC__ + 0 > 3 || \ 287#elif defined (__clang__) || __GNUC__ + 0 > 3 || \
288 (__GNUC__ + 0 == 3 && __GNUC_MINOR__ + 0 >= 1) 288 (__GNUC__ + 0 == 3 && __GNUC_MINOR__ + 0 >= 1)
289/* 3.1 <= GCC < 5.0 or clang < 2.9 */ 289/* 3.1 <= GCC < 5.0 or clang < 2.9 */
290/* old GCC-style deprecation do not support custom messages */ 290/* old GCC-style deprecation does not support custom messages */
291#define _MHD_DEPR_FUNC(msg) __attribute__((__deprecated__)) 291#define _MHD_DEPR_FUNC(msg) __attribute__((__deprecated__))
292/* #elif defined(SOMEMACRO) */ /* add compiler-specific macros here if required */ 292/* #elif defined(SOMEMACRO) */ /* add compiler-specific macros here if required */
293#endif /* clang < 2.9 || GCC >= 3.1 */ 293#endif /* clang < 2.9 || GCC >= 3.1 */
@@ -310,7 +310,7 @@ typedef SOCKET MHD_socket;
310#define MHD_LONG_LONG long long 310#define MHD_LONG_LONG long long
311#define MHD_UNSIGNED_LONG_LONG unsigned long long 311#define MHD_UNSIGNED_LONG_LONG unsigned long long
312#else /* MHD_LONG_LONG */ 312#else /* MHD_LONG_LONG */
313_MHD_DEPR_MACRO ( 313_MHD_DEPR_MACRO ( \
314 "Macro MHD_LONG_LONG is deprecated, use MHD_UNSIGNED_LONG_LONG") 314 "Macro MHD_LONG_LONG is deprecated, use MHD_UNSIGNED_LONG_LONG")
315#endif 315#endif
316/** 316/**
@@ -324,7 +324,7 @@ _MHD_DEPR_MACRO (
324#define MHD_LONG_LONG_PRINTF "ll" 324#define MHD_LONG_LONG_PRINTF "ll"
325#define MHD_UNSIGNED_LONG_LONG_PRINTF "%llu" 325#define MHD_UNSIGNED_LONG_LONG_PRINTF "%llu"
326#else /* MHD_LONG_LONG_PRINTF */ 326#else /* MHD_LONG_LONG_PRINTF */
327_MHD_DEPR_MACRO ( 327_MHD_DEPR_MACRO ( \
328 "Macro MHD_LONG_LONG_PRINTF is deprecated, use MHD_UNSIGNED_LONG_LONG_PRINTF") 328 "Macro MHD_LONG_LONG_PRINTF is deprecated, use MHD_UNSIGNED_LONG_LONG_PRINTF")
329#endif 329#endif
330 330