Build fixes from Windows changes.
This commit is contained in:
parent
ea1d496299
commit
6fe3279436
@ -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;
|
||||
}
|
||||
|
@ -30,6 +30,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
struct mosquitto;
|
||||
|
@ -60,6 +60,8 @@ struct mosquitto_acl_msg {
|
||||
|
||||
#ifdef WIN32
|
||||
# define mosq_plugin_EXPORT __declspec(dllexport)
|
||||
#else
|
||||
# define mosq_plugin_EXPORT
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user