diff options
Diffstat (limited to 'cpukit/rtems/include/rtems/rtems/partmp.h')
-rw-r--r-- | cpukit/rtems/include/rtems/rtems/partmp.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/cpukit/rtems/include/rtems/rtems/partmp.h b/cpukit/rtems/include/rtems/rtems/partmp.h index 3d3f47fe52..6eae109772 100644 --- a/cpukit/rtems/include/rtems/rtems/partmp.h +++ b/cpukit/rtems/include/rtems/rtems/partmp.h @@ -18,8 +18,8 @@ #ifndef _RTEMS_RTEMS_PARTMP_H #define _RTEMS_RTEMS_PARTMP_H -#ifdef __cplusplus -extern "C" { +#ifndef _RTEMS_RTEMS_PARTIMPL_H +# error "Never use <rtems/rtems/partmp.h> directly; include <rtems/rtems/partimpl.h> instead." #endif #include <rtems/score/mppkt.h> @@ -27,7 +27,9 @@ extern "C" { #include <rtems/rtems/options.h> #include <rtems/score/thread.h> -#include <rtems/rtems/part.h> +#ifdef __cplusplus +extern "C" { +#endif /** * @defgroup ClassicPartMP Partition MP Support |