libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit dab2db20fdee8f0604ba23fe7a28c047bf36c2c1
parent a96eaaaa25421eb0a2ce7b907168c74458b0ea5e
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Thu, 19 Aug 2021 16:48:25 +0300

microhttpd.h: moved up MHD_VERSION macro

Diffstat:
Msrc/include/microhttpd.h | 20++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h @@ -88,6 +88,16 @@ extern "C" #endif #endif + +/** + * Current version of the library in packed BCD form. + * @note Version number components are coded as Simple Binary-Coded Decimal + * (also called Natural BCD or BCD 8421). While they are hexadecimal numbers, + * they are parsed as decimal numbers. + * Example: 0x01093001 = 1.9.30-1. + */ +#define MHD_VERSION 0x00097309 + /* If generic headers don't work on your platform, include headers which define 'va_list', 'size_t', 'ssize_t', 'intptr_t', 'uint16_t', 'uint32_t', 'uint64_t', 'off_t', 'struct sockaddr', @@ -124,16 +134,6 @@ typedef intptr_t ssize_t; #error Cygwin with winsock fd_set is not supported #endif -/** - * Current version of the library in packed BCD form. - * @note Version number components are coded as Simple Binary-Coded Decimal - * (also called Natural BCD or BCD 8421). While they are hexadecimal numbers, - * they are parsed as decimal numbers. - * Example: 0x01093001 = 1.9.30-1. - */ -#define MHD_VERSION 0x00097308 - - #ifdef __has_attribute #if __has_attribute (flag_enum) #define _MHD_FLAGS_ENUM __attribute__((flag_enum))