mirror of
https://github.com/FreeRTOS/Lab-Project-FreeRTOS-POSIX.git
synced 2025-10-20 13:04:40 +08:00
Fix name mangling when using a C++ compiler (#7)
This commit is contained in:
@@ -33,6 +33,10 @@
|
||||
#ifndef _FREERTOS_POSIX_MQUEUE_H_
|
||||
#define _FREERTOS_POSIX_MQUEUE_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* FreeRTOS+POSIX includes. */
|
||||
#include "FreeRTOS_POSIX/time.h"
|
||||
|
||||
@@ -247,4 +251,8 @@ int mq_timedsend( mqd_t mqdes,
|
||||
*/
|
||||
int mq_unlink( const char * name );
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* ifndef _FREERTOS_POSIX_MQUEUE_H_ */
|
||||
|
Reference in New Issue
Block a user