From f4b76ab569d76efb503542b2d5bb857cd37cf83f Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 16 Nov 1999 16:04:51 +0000 Subject: Fixed so can be included multiple times in the executive source. --- c/src/exec/sapi/include/rtems/sptables.h.in | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'c/src/exec') diff --git a/c/src/exec/sapi/include/rtems/sptables.h.in b/c/src/exec/sapi/include/rtems/sptables.h.in index 737095a7de..de98be836c 100644 --- a/c/src/exec/sapi/include/rtems/sptables.h.in +++ b/c/src/exec/sapi/include/rtems/sptables.h.in @@ -50,6 +50,7 @@ extern "C" { * It is used in single processor configurations. */ +#if defined(SAPI_INIT) const rtems_multiprocessing_table _Initialization_Default_multiprocessing_table = { 1, /* local node number */ @@ -58,6 +59,10 @@ const rtems_multiprocessing_table 0, /* maximum number proxies */ NULL, /* pointer to MPCI address table */ }; +#else +extern const rtems_multiprocessing_table + _Initialization_Default_multiprocessing_table; +#endif /* * This is the version string. @@ -65,9 +70,13 @@ const rtems_multiprocessing_table #define RTEMS_VERSION "rtems-@RTEMS_VERSION@" +#if defined(SAPI_INIT) const char _RTEMS_version[] = "RTEMS RELEASE " RTEMS_VERSION "(" CPU_NAME "/" CPU_MODEL_NAME "/@RTEMS_BSP@)"; +#else +extern const char _RTEMS_version[]; +#endif #ifdef __cplusplus } -- cgit v1.2.3