mirror of
https://github.com/espressif/esp-protocols.git
synced 2025-07-04 22:26:30 +02:00
fix(mosq): include config.h before any system header
This commit is contained in:
@ -3,11 +3,11 @@
|
|||||||
*
|
*
|
||||||
* SPDX-License-Identifier: EPL-2.0
|
* SPDX-License-Identifier: EPL-2.0
|
||||||
*
|
*
|
||||||
* SPDX-FileContributor: 2024 Espressif Systems (Shanghai) CO LTD
|
* SPDX-FileContributor: 2024-2025 Espressif Systems (Shanghai) CO LTD
|
||||||
*/
|
*/
|
||||||
#include <ctype.h>
|
|
||||||
#include "mosquitto.h"
|
|
||||||
#include "mosquitto_broker_internal.h"
|
#include "mosquitto_broker_internal.h"
|
||||||
|
#include "mosquitto.h"
|
||||||
|
#include <ctype.h>
|
||||||
|
|
||||||
// Dummy implementation of file access
|
// Dummy implementation of file access
|
||||||
// This needs to be implemented if we need to load/store config from files
|
// This needs to be implemented if we need to load/store config from files
|
||||||
|
@ -1,15 +1,23 @@
|
|||||||
/*
|
/*
|
||||||
* SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
|
* SPDX-FileCopyrightText: 2024-2025 Espressif Systems (Shanghai) CO LTD
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
#include_next "config.h"
|
||||||
|
|
||||||
|
/*
|
||||||
|
* =======================================================================
|
||||||
|
* Do NOT include any other header before this comment.
|
||||||
|
* config.h header configures critical macros that must be set before any
|
||||||
|
* system or standard library headers are included.
|
||||||
|
* =======================================================================
|
||||||
|
*/
|
||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include "net/if.h"
|
#include "net/if.h"
|
||||||
|
|
||||||
#undef isspace
|
#undef isspace
|
||||||
#define isspace(__c) (__ctype_lookup((int)__c)&_S)
|
#define isspace(__c) (__ctype_lookup((int)__c)&_S)
|
||||||
|
|
||||||
#include_next "config.h"
|
|
||||||
|
|
||||||
#define VERSION "v2.0.20~2"
|
#define VERSION "v2.0.20~2"
|
||||||
|
Reference in New Issue
Block a user