Update on >=libclamav-0.95 API issue.
Your proposal seems like the easiest fix, albeit a hack.
I was tinkering with the idea of using configure to check for installed
version and do blunt ln -s to the right htm_ClamAV.c, but that would be
even more "ugly" :-)
Tillmann Werner skrev:
> Hi Stein,
>> There is in fact a version function in clamav.h
>> It returns software version and level (?), see line 201 in
> Yes, I know, but that lets you determine the version during runtime
> only. What we need is a method that works during compile time. I
> addressed that question on the clamav-devel mailing list. Edwin Török
> proposed to use a constant that is only defined for the new API, like
> #ifdef CL_INIT_DEFAULT
> // ... code for 0.95+ API
> // .. code for <0.95 API
> Although this is a hack and not perfect, I guess it's the only possible
> solution so far. Let me know what you think.
> PS.: Do you want to move this thread back to the mailing list so that
> others could participate as well? Or rather stay private? Up to you. :)