Files
open-amp/lib/version.c
Sergei Korneichuk 14f3f8405b version: use generated version_def.h
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>
2023-04-24 09:50:56 +02:00

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;
}