mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
lib: Fix build on <c++20
C99 and C++20 are the minimum versions that support dedicated initializer lists.
This commit is contained in:
parent
32a9e12f62
commit
c720df5938
@ -85,10 +85,9 @@ inline bool obs_websocket_register_request(obs_websocket_vendor vendor, const ch
|
|||||||
{
|
{
|
||||||
calldata_t cd = {0};
|
calldata_t cd = {0};
|
||||||
|
|
||||||
struct obs_websocket_request_callback cb = {
|
struct obs_websocket_request_callback cb = {};
|
||||||
.callback = request_callback,
|
cb.callback = request_callback;
|
||||||
.priv_data = priv_data,
|
cb.priv_data = priv_data;
|
||||||
};
|
|
||||||
|
|
||||||
calldata_set_string(&cd, "type", request_type);
|
calldata_set_string(&cd, "type", request_type);
|
||||||
calldata_set_ptr(&cd, "callback", &cb);
|
calldata_set_ptr(&cd, "callback", &cb);
|
||||||
|
Loading…
Reference in New Issue
Block a user