Fix name mangling when using a C++ compiler (#7)

This commit is contained in:
Anes Belfodil
2020-09-25 14:37:09 -04:00
committed by GitHub
parent 52b1a0f80d
commit 0c6cec978c
11 changed files with 88 additions and 0 deletions

View File

@@ -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_ */