rtems: Move declartion of _RTEMS_version

Close #3978.
This commit is contained in:
Sebastian Huber
2020-05-11 08:20:48 +02:00
parent a3b86d6caf
commit 90390118c0
3 changed files with 11 additions and 8 deletions

View File

@@ -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

View File

@@ -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.
*/

View File

@@ -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)
{