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:
Laukik Hase
2022-03-21 11:11:13 +05:30
committed by Harshit Malpani
parent f1fbbf3171
commit 43d3cb37a0
2 changed files with 6 additions and 14 deletions

View File

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

View File

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