Skip to content

Commit

Permalink
#304 Missing create_options::DFLT_C_STRUCT symbol when linking with M…
Browse files Browse the repository at this point in the history
…SVC.
  • Loading branch information
fpagliughi committed Nov 15, 2023
1 parent 8da5721 commit 93a8ba2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/create_options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ namespace mqtt {
const MQTTAsync_createOptions create_options::DFLT_C_STRUCT =
MQTTAsync_createOptions_initializer5;

create_options::create_options() : opts_(DFLT_C_STRUCT)
{
}

create_options::create_options(int mqttVersion) : create_options()
{
opts_.MQTTVersion = mqttVersion;
Expand Down
2 changes: 1 addition & 1 deletion src/mqtt/create_options.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class create_options
/**
* Default set of client create options.
*/
create_options() : opts_(DFLT_C_STRUCT) {}
create_options();
/**
* Default create options for the specified version of MQTT.
* @param mqttVersion The MQTT version used to create the client.
Expand Down

0 comments on commit 93a8ba2

Please sign in to comment.