Merge pull request #808 from Lapshin/master

fix(mosq): include config.h before any system header (IDFGH-15223)
This commit is contained in:
david-cermak
2025-05-02 10:26:41 +02:00
committed by GitHub
2 changed files with 14 additions and 6 deletions

View File

@ -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 <ctype.h>
#include "mosquitto.h"
#include "mosquitto_broker_internal.h"
#include "mosquitto.h"
#include <ctype.h>
// Dummy implementation of file access
// 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
*/
#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 "net/if.h"
#undef isspace
#define isspace(__c) (__ctype_lookup((int)__c)&_S)
#include_next "config.h"
#define VERSION "v2.0.20~2"