[AGENT++] patch when using clang compiler (patch attached inline)

Frank Fock fock at agentpp.com
Wed Dec 18 22:14:53 CET 2013


Hi Cyril,

Thank you for providing this fix. It will be included in the next release.

Best regards,
Frank

Am 18.12.2013 13:50, schrieb Flaig Cyril:
> Below you will find the patch inline.
>
> Best regards
> Cyril
>
>
> clang.patch :
>
> diff -rup agent++-4.0.2/include/agent_pp/agent++.h.in agent++-4.0.2-new/include/agent_pp/agent++.h.in
> --- agent++-4.0.2/include/agent_pp/agent++.h.in	2013-05-09 16:33:13.000000000 +0200
> +++ agent++-4.0.2-new/include/agent_pp/agent++.h.in	2013-12-18 13:16:16.980492951 +0100
> @@ -203,7 +203,7 @@ typedef enum { READING, WRITING } access
>   
>   #define DEFAULT_ENGINE_BOOTS_FILE "snmpv3_boot_counter"
>   
> -#ifdef __APPLE__
> +#if defined(__APPLE__) || defined(__clang__)
>   // g++ 4.0.1 of MacOS X 10.5.6 does not like the template declarations
>   #define AGENTPP_DECL_TEMPL_OIDLIST_MIBSTATICENTRY
>   #define AGENTPP_DECL_TEMPL_LIST_MIBENTRY
> _______________________________________________
> AGENTPP mailing list
> AGENTPP at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/agentpp

-- 
---
AGENT++
Maximilian-Kolbe-Str. 10
73257 Koengen, Germany
https://agentpp.com
Phone: +49 7024 8688230
Fax:   +49 7024 8688231



More information about the AGENTPP mailing list