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:
@@ -31,6 +31,10 @@
|
||||
#ifndef _FREERTOS_POSIX_UTILS_
|
||||
#define _FREERTOS_POSIX_UTILS_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* C standard library includes. */
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
@@ -152,4 +156,8 @@ int UTILS_TimespecCompare( const struct timespec * const x,
|
||||
*/
|
||||
bool UTILS_ValidateTimespec( const struct timespec * const pxTimespec );
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* ifndef _FREERTOS_POSIX_UTILS_ */
|
||||
|
Reference in New Issue
Block a user