[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [libmicrohttpd] Introducing a LMH version check in a configure.ac
From: |
Christian Grothoff |
Subject: |
Re: [libmicrohttpd] Introducing a LMH version check in a configure.ac |
Date: |
Wed, 20 Jan 2010 14:15:52 +0100 |
User-agent: |
KMail/1.12.4 (Linux/2.6.32-trunk-amd64; KDE/4.3.4; x86_64; ; ) |
Dear Emmanuel,
If MHD_VERSION is larger or equal to 0x00040000 you have version 0.4.0 or
higher. Basically, if MHD is version A.B.C then the numeric values of A/B/C
converted to hex will be used for MHD_VERSION (0xAABBCC00). The last '00' can
be changed to indicate changes in SVN (unreleased) or for minor versions (i.e.
0.4.5a might mean that the last '00' is changed to some number greater 0 to
indicate the 'a' variant).
Best,
Christian
On Wednesday 20 January 2010 10:40:43 address@hidden wrote:
> Hi,
>
> I use libmicrohttpd in my project and it works well, it does exactly what
> it has to do.
>
> Unfortunately, my soft does not compile on "old" GNU/Linux distributions. I
> get this error:
>
> file.cpp:279: erreur: invalid conversion from «int (*)(void*,
> MHD_Connection*, const char*, const char*, const char*, const char*,
> size_t*, void**)» to «int (*)(void*, MHD_Connection*, const char*, const
> char*, const char*, const char*, unsigned int*, void**)»
>
> file.cpp:279: erreur: initialising argument 5 of «MHD_Daemon*
> MHD_start_daemon(unsigned int, short unsigned int, int (*)(void*, const
> sockaddr*, socklen_t), void*, int (*)(void*, MHD_Connection*, const char*,
> const char*, const char*, const char*, unsigned int*, void**), void*,
> ...)»
>
> It seems that the API was changed at the version 0.4.0 and in fact it works
> well with a recent version of LMH. I want now to check that (the LMH
> version) in my configure.ac: I want to be certain that the system has a
> version of LMH at least higher than the 0.4.0.
>
> How I can do that? I have seen MHD_VERSION in microhttpd.h but I do not
> understand how to make the relation between this hex. number and the human
> readable version numbers (like 0.4.0).
>
> Regards
> Emmmanuel
>
--
http://grothoff.org/christian/