mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-02 20:24:32 +02:00
esp_crt_bundle: Fix build error
- When `esp_crt_bundle.h` is included before any config, a build error (`esp_err_t` not defined) is observed Closes https://github.com/espressif/esp-idf/issues/8606
This commit is contained in:
committed by
Harshit Malpani
parent
f1fbbf3171
commit
43d3cb37a0
@@ -17,7 +17,6 @@
|
|||||||
#include <esp_system.h>
|
#include <esp_system.h>
|
||||||
#include "esp_crt_bundle.h"
|
#include "esp_crt_bundle.h"
|
||||||
#include "esp_log.h"
|
#include "esp_log.h"
|
||||||
#include "esp_err.h"
|
|
||||||
|
|
||||||
#define BUNDLE_HEADER_OFFSET 2
|
#define BUNDLE_HEADER_OFFSET 2
|
||||||
#define CRT_HEADER_OFFSET 4
|
#define CRT_HEADER_OFFSET 4
|
||||||
|
@@ -1,21 +1,14 @@
|
|||||||
// Copyright 2017-2019 Espressif Systems (Shanghai) PTE LTD
|
/*
|
||||||
//
|
* SPDX-FileCopyrightText: 2017-2022 Espressif Systems (Shanghai) CO LTD
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
*
|
||||||
// you may not use this file except in compliance with the License.
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
// You may obtain a copy of the License at
|
*/
|
||||||
|
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
//
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
// See the License for the specific language governing permissions and
|
|
||||||
// limitations under the License.
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef _ESP_CRT_BUNDLE_H_
|
#ifndef _ESP_CRT_BUNDLE_H_
|
||||||
#define _ESP_CRT_BUNDLE_H_
|
#define _ESP_CRT_BUNDLE_H_
|
||||||
|
|
||||||
|
#include "esp_err.h"
|
||||||
#include "mbedtls/ssl.h"
|
#include "mbedtls/ssl.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
Reference in New Issue
Block a user