On 11/16/26 7:04 AM, Stuart Henderson wrote:
On 2026/11/16 06:48, Wes Hardaker wrote:
Stuart Henderson <[email protected]> writes:
- The stricter OID_LENGTH macro using __builtin_types_compatible_p
in 589e9c5 results in build failures when used from C++ code.
What we should do, IMHO, is not not use any C++ code at all anywhere.
It would be best to rewrite the macro to use C compatible conventions
entirely.
If there is something truly beneficial that helps C++ code (or
compilers), then the ifdef you mentioned is better than nothing.
We do know that many people do use non-C++ compilers, so this is another
show stopper in my eyes.
Other way round, it works with a C compiler but not C++.
The OID_LENGTH() macro on the master branch should again support both C
and C++. Further feedback is welcome.
Thanks,
Bart.
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders