fix(mosq): include config.h before any system header

This commit is contained in:
Alexey Lapshin
2025-05-01 23:57:39 +07:00
parent c6f08ee961
commit 1b1ede435d
2 changed files with 14 additions and 6 deletions

View File

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

View File

@ -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"