Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2022-01-18 05:17:54 +0300
committerMike Frysinger <vapier@gentoo.org>2022-01-20 03:59:16 +0300
commit21fb1b461c29b61faf199ec2362ff9a53d6f01e6 (patch)
tree71112e065cf05d4c6e5c1c3376c5dcb4c40346b6 /newlib/_newlib_version.hin
parent850e08fedbc6fcd15b6db3ea44aaeafb14fb5490 (diff)
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.hin16
1 files changed, 11 insertions, 5 deletions
diff --git a/newlib/_newlib_version.hin b/newlib/_newlib_version.hin
index 03d4e3d47..077b81ecf 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__ */