Build fixes from Windows changes.

This commit is contained in:
Roger A. Light 2020-12-02 20:38:21 +00:00
parent ea1d496299
commit 6fe3279436
3 changed files with 4 additions and 1 deletions

View File

@ -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;
}

View File

@ -30,6 +30,7 @@ extern "C" {
#endif
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
struct mosquitto;

View File

@ -60,6 +60,8 @@ struct mosquitto_acl_msg {
#ifdef WIN32
# define mosq_plugin_EXPORT __declspec(dllexport)
#else
# define mosq_plugin_EXPORT
#endif
/*