mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-08 10:32:53 +03:00
As pointed out in issue #368 [1], C++ officially forbids aggregate initialization for non-aggegrates. This change therefore introduces an alternative version (which works for both C and C++) to provide the required functionality. str.c: str.h: Make coap_make_str_const() a function. examples/coap-server.c: Fix parameter type in coap_add_attr() call. src/resource.c: Static variables can no longer make use of coap_make_str_const(). libcoap-2.map: libcoap-2.sym: Make coap_make_str_const() appication visible. Fixes #368. [1] https://github.com/obgm/libcoap/issues/368 Update