mirror of
https://github.com/OpenAMP/open-amp.git
synced 2025-12-06 11:31:08 +08:00
Using command line to define the OPENAMP_VERSION string macro breaks Cygwin build on some releases of Microsoft Windows and CMake. Remove all OPENAMP_VERSION macros from cmake compiler flags and use the ones from the generated version_def.h file. Signed-off-by: Sergei Korneichuk <sergei.korneichuk@amd.com>
28 lines
387 B
C
28 lines
387 B
C
/*
|
|
* Copyright (c) 2021, STMicroelectronics
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#include <version_def.h>
|
|
|
|
int openamp_version_major(void)
|
|
{
|
|
return OPENAMP_VERSION_MAJOR;
|
|
}
|
|
|
|
int openamp_version_minor(void)
|
|
{
|
|
return OPENAMP_VERSION_MINOR;
|
|
}
|
|
|
|
int openamp_version_patch(void)
|
|
{
|
|
return OPENAMP_VERSION_PATCH;
|
|
}
|
|
|
|
const char *openamp_version(void)
|
|
{
|
|
return OPENAMP_VERSION;
|
|
}
|