From 75061954c11e799afd1d9d787bd3b62a151d8011 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 30 May 2000 14:07:37 +0000 Subject: Patch from Nick Simon to make error.h C++ safe. --- c/src/lib/libc/error.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/c/src/lib/libc/error.h b/c/src/lib/libc/error.h index a0698afb5d..de6e1715db 100644 --- a/c/src/lib/libc/error.h +++ b/c/src/lib/libc/error.h @@ -7,6 +7,10 @@ #ifndef __RTEMS_ERROR_h #define __RTEMS_ERROR_h +#ifdef __cplusplus +extern "C" { +#endif + /* * rtems_error() and rtems_panic() support */ @@ -34,5 +38,10 @@ void rtems_panic(const char *printf_format, ...); extern int rtems_panic_in_progress; +#ifdef __cplusplus +} +#endif + + #endif /* end of include file */ -- cgit v1.2.3