mirror of
https://github.com/espressif/esp-idf.git
synced 2025-12-05 08:40:39 +01:00
fix(struct_h): add extern "C" protection to *_struct.h header files.
This commit is contained in:
@@ -13,6 +13,11 @@
|
||||
// limitations under the License.
|
||||
#ifndef _SOC_UART_STRUCT_H_
|
||||
#define _SOC_UART_STRUCT_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef volatile struct {
|
||||
union {
|
||||
struct {
|
||||
@@ -362,4 +367,9 @@ typedef volatile struct {
|
||||
extern uart_dev_t UART0;
|
||||
extern uart_dev_t UART1;
|
||||
extern uart_dev_t UART2;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* _SOC_UART_STRUCT_H_ */
|
||||
|
||||
Reference in New Issue
Block a user