summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-05-11 08:20:48 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-07-14 07:25:45 +0200
commit90390118c0eaa76da6f98ee81f775391b7bfb695 (patch)
treecb93791335d17f31e20c625cb5724806204a7be3
parentFix for Beaglebone BSP PWM bug (diff)
downloadrtems-90390118c0eaa76da6f98ee81f775391b7bfb695.tar.bz2
rtems: Move declartion of _RTEMS_version
Close #3978.
-rw-r--r--cpukit/include/rtems/score/copyrt.h10
-rw-r--r--cpukit/include/rtems/system.h6
-rw-r--r--cpukit/sapi/src/getversionstring.c3
3 files changed, 11 insertions, 8 deletions
diff --git a/cpukit/include/rtems/score/copyrt.h b/cpukit/include/rtems/score/copyrt.h
index c7b00b4247..1d0ad09f29 100644
--- a/cpukit/include/rtems/score/copyrt.h
+++ b/cpukit/include/rtems/score/copyrt.h
@@ -41,6 +41,16 @@ extern "C" {
*/
extern const char _Copyright_Notice[];
+/**
+ * @brief This constant provides the RTEMS version string.
+ *
+ * The constant name does not follow the naming conventions. Do not change it
+ * for backward compatibility reasons.
+ *
+ * @see rtems_get_version_string()
+ */
+extern const char _RTEMS_version[];
+
#ifdef __cplusplus
}
#endif
diff --git a/cpukit/include/rtems/system.h b/cpukit/include/rtems/system.h
index 032ac56a95..3a2dff9721 100644
--- a/cpukit/include/rtems/system.h
+++ b/cpukit/include/rtems/system.h
@@ -39,12 +39,6 @@ extern "C" {
#ifndef ASM
-/*
- * The use of this variable is deprecated, use rtems_get_version_string()
- * instead.
- */
-extern RTEMS_DEPRECATED const char _RTEMS_version[];
-
/**
* The following is the extern for the RTEMS copyright string.
*/
diff --git a/cpukit/sapi/src/getversionstring.c b/cpukit/sapi/src/getversionstring.c
index f3fada9c48..a036fe2fbf 100644
--- a/cpukit/sapi/src/getversionstring.c
+++ b/cpukit/sapi/src/getversionstring.c
@@ -19,9 +19,8 @@
#include "config.h"
#endif
-#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
-
#include <rtems.h>
+#include <rtems/score/copyrt.h>
const char *rtems_get_version_string(void)
{