mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-07-25 21:17:47 +08:00
C++ compatiblity for kernel space header
This commit is contained in:
parent
05ec85c87c
commit
5173168252
@ -58,6 +58,10 @@
|
|||||||
#include <machine/rtems-bsd-version.h>
|
#include <machine/rtems-bsd-version.h>
|
||||||
#include <machine/rtems-bsd-kernel-namespace.h>
|
#include <machine/rtems-bsd-kernel-namespace.h>
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
/* Assert */
|
/* Assert */
|
||||||
|
|
||||||
void rtems_bsd_assert_func(const char *file, int line, const char *func, const char *expr);
|
void rtems_bsd_assert_func(const char *file, int line, const char *func, const char *expr);
|
||||||
@ -94,4 +98,8 @@ void rtems_bsd_assert_func(const char *file, int line, const char *func, const c
|
|||||||
|
|
||||||
#define EDOOFUS __ELASTERROR
|
#define EDOOFUS __ELASTERROR
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
#endif /* _RTEMS_BSD_MACHINE_RTEMS_BSD_KERNEL_SPACE_H_ */
|
#endif /* _RTEMS_BSD_MACHINE_RTEMS_BSD_KERNEL_SPACE_H_ */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user