diff options
author | Mike Frysinger <vapier@gentoo.org> | 2022-01-17 21:17:54 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2022-01-19 19:59:16 -0500 |
commit | 21fb1b461c29b61faf199ec2362ff9a53d6f01e6 (patch) | |
tree | 71112e065cf05d4c6e5c1c3376c5dcb4c40346b6 /newlib/_newlib_version.hin | |
parent | 850e08fedbc6fcd15b6db3ea44aaeafb14fb5490 (diff) | |
download | newlib-21fb1b461c29b61faf199ec2362ff9a53d6f01e6.zip newlib-21fb1b461c29b61faf199ec2362ff9a53d6f01e6.tar.gz newlib-21fb1b461c29b61faf199ec2362ff9a53d6f01e6.tar.bz2 |
newlib: move version defines out of the config headers
This will make it easier to move newlib.h to use autoheader directly.
We only want the newlib version defines in our hand curated version
file, _newlib_version.h, not in the template header, newlib.h, so
using AC_DEFINE doesn't make much sense.
Diffstat (limited to 'newlib/_newlib_version.hin')
-rw-r--r-- | newlib/_newlib_version.hin | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/newlib/_newlib_version.hin b/newlib/_newlib_version.hin index 03d4e3d..077b81e 100644 --- a/newlib/_newlib_version.hin +++ b/newlib/_newlib_version.hin @@ -2,10 +2,16 @@ #ifndef _NEWLIB_VERSION_H__ #define _NEWLIB_VERSION_H__ 1 -#undef _NEWLIB_VERSION -#undef __NEWLIB__ -#undef __NEWLIB_MINOR__ -#undef __NEWLIB_PATCHLEVEL__ +/* The newlib version in string format. */ +#define _NEWLIB_VERSION "@NEWLIB_VERSION@" -#endif /* !_NEWLIB_VERSION_H__ */ +/* The newlib major version number. */ +#define __NEWLIB__ @NEWLIB_MAJOR_VERSION@ + +/* The newlib minor version number. */ +#define __NEWLIB_MINOR__ @NEWLIB_MINOR_VERSION@ +/* The newlib patch level. */ +#define __NEWLIB_PATCHLEVEL__ @NEWLIB_PATCHLEVEL_VERSION@ + +#endif /* !_NEWLIB_VERSION_H__ */ |