diff --git a/components/mosquitto/port/files.c b/components/mosquitto/port/files.c index b71fa0543..d5b446395 100644 --- a/components/mosquitto/port/files.c +++ b/components/mosquitto/port/files.c @@ -3,11 +3,11 @@ * * SPDX-License-Identifier: EPL-2.0 * - * SPDX-FileContributor: 2024 Espressif Systems (Shanghai) CO LTD + * SPDX-FileContributor: 2024-2025 Espressif Systems (Shanghai) CO LTD */ -#include -#include "mosquitto.h" #include "mosquitto_broker_internal.h" +#include "mosquitto.h" +#include // Dummy implementation of file access // This needs to be implemented if we need to load/store config from files diff --git a/components/mosquitto/port/priv_include/config.h b/components/mosquitto/port/priv_include/config.h index 5be59e100..deed531fc 100644 --- a/components/mosquitto/port/priv_include/config.h +++ b/components/mosquitto/port/priv_include/config.h @@ -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 */ #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 #include "net/if.h" #undef isspace #define isspace(__c) (__ctype_lookup((int)__c)&_S) -#include_next "config.h" - #define VERSION "v2.0.20~2"