mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
tinyusb: add 'extern C' bit to tusb_console.h
Public headers need the "if __cplusplus, extern C" boilerplate. Otherwise, C++ sources which include the header will look for a name-mangled symbol and fail at link time. Closes https://github.com/espressif/esp-idf/pull/6455 Closes IDFGH-4641
This commit is contained in:
parent
7d07efb7b5
commit
8f064dabcd
@ -14,6 +14,10 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "esp_err.h"
|
||||
|
||||
/**
|
||||
@ -31,3 +35,7 @@ esp_err_t esp_tusb_init_console(int cdc_intf);
|
||||
* @return esp_err_t
|
||||
*/
|
||||
esp_err_t esp_tusb_deinit_console(int cdc_intf);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user