mirror of
https://github.com/espressif/esp-idf
synced 2025-03-11 10:09:08 -04:00
ringbuf.h: Add anti name-mangling definition
When using CPP and C combination this particular file threw error on linking. Merges https://github.com/espressif/esp-idf/pull/1249 (Amended to add INC_FREERTOS_H guard, comment on #endif)
This commit is contained in:
parent
7e8c2a9c00
commit
0b48d5978e
@ -1,6 +1,14 @@
|
||||
#ifndef FREERTOS_RINGBUF_H
|
||||
#define FREERTOS_RINGBUF_H
|
||||
|
||||
#ifndef INC_FREERTOS_H
|
||||
#error "include FreeRTOS.h" must appear in source files before "include ringbuf.h"
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
Header definitions for a FreeRTOS ringbuffer object
|
||||
|
||||
@ -242,5 +250,9 @@ BaseType_t xRingbufferRemoveFromQueueSetWrite(RingbufHandle_t ringbuf, QueueSetH
|
||||
*/
|
||||
void xRingbufferPrintInfo(RingbufHandle_t ringbuf);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* FREERTOS_RINGBUF_H */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user