Skip to content

Commit

Permalink
Build fixes from Windows changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralight committed Dec 2, 2020
1 parent ea1d496 commit 6fe3279
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion client/sub_client_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ static int json_print(const struct mosquitto_message *message, const mosquitto_p
return_parse_end = NULL;
if(message->payload){
tmp = cJSON_ParseWithOpts(message->payload, &return_parse_end, true);
if(tmp == NULL || return_parse_end != (uint8_t *)message->payload + message->payloadlen){
if(tmp == NULL || return_parse_end != (char *)message->payload + message->payloadlen){
cJSON_Delete(root);
return MOSQ_ERR_INVAL;
}
Expand Down
1 change: 1 addition & 0 deletions include/mosquitto_broker.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ extern "C" {
#endif

#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>

struct mosquitto;
Expand Down
2 changes: 2 additions & 0 deletions include/mosquitto_plugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ struct mosquitto_acl_msg {

#ifdef WIN32
# define mosq_plugin_EXPORT __declspec(dllexport)
#else
# define mosq_plugin_EXPORT
#endif

/*
Expand Down

0 comments on commit 6fe3279

Please sign in to comment.