summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Burnicki <martin.burnicki@meinberg.de>2023-02-24 13:05:47 +0100
committerMartin Burnicki <martin.burnicki@meinberg.de>2023-02-24 13:05:47 +0100
commitc289a41e628e29a64733dab49a6332e88cf99610 (patch)
treea93a37fc0e501447f6a483f9fd0729334971d56e
parenta6546b03806f933b526c7c0b23917b93a334f5b4 (diff)
downloadmbgtools-lx-c289a41e628e29a64733dab49a6332e88cf99610.tar.gz
mbgtools-lx-c289a41e628e29a64733dab49a6332e88cf99610.zip
Remove obsolete Windows-specific definitions from mbgversion.h
-rw-r--r--mbgversion.h21
1 files changed, 6 insertions, 15 deletions
diff --git a/mbgversion.h b/mbgversion.h
index a98c3b5..85c2855 100644
--- a/mbgversion.h
+++ b/mbgversion.h
@@ -1,7 +1,7 @@
/**************************************************************************
*
- * $Id: mbgversion.h 1.24 2023/02/20 16:26:02 martin.burnicki REL_M $
+ * $Id: mbgversion.h 1.25 2023/02/24 12:04:51 martin.burnicki REL_M $
*
* Copyright (c) Meinberg Funkuhren, Bad Pyrmont, Germany
*
@@ -10,6 +10,8 @@
*
* -----------------------------------------------------------------------
* $Log: mbgversion.h $
+ * Revision 1.25 2023/02/24 12:04:51 martin.burnicki
+ * Removed Windows-specific definitions which are obsolete.
* Revision 1.24 2023/02/20 16:26:02 martin.burnicki
* Changed copyright year to 2023.
* Revision 1.23 2022/07/25 16:42:07Z martin.burnicki
@@ -77,10 +79,6 @@
#define MBG_MINOR_VERSION_CODE 2
#define MBG_MICRO_VERSION_CODE 21
-#if defined( MBG_TGT_WIN32 )
- #define MBG_BUILD_VERSION_CODE 0
-#endif
-
// --------------------------------------------------------------------
// The following definitions are derived from the definitions above.
@@ -92,20 +90,13 @@
#define MBG_MINOR_VERSION_STR STRINGIFY( MBG_MINOR_VERSION_CODE )
#define MBG_MICRO_VERSION_STR STRINGIFY( MBG_MICRO_VERSION_CODE )
-#if defined( MBG_BUILD_VERSION_CODE )
- #define MBG_BUILD_VERSION_STR STRINGIFY( MBG_BUILD_VERSION_CODE )
-#endif
-
-
#define MBG_SHORT_VERSION_CODE ( ( MBG_MAJOR_VERSION_CODE << 8 ) | MBG_MINOR_VERSION_CODE )
#define MBG_SHORT_VERSION_STR MBG_MAJOR_VERSION_STR "." MBG_MINOR_VERSION_STR
-#if defined( MBG_BUILD_VERSION_STR )
- #define MBG_NUMERIC_VERSION_STR MBG_SHORT_VERSION_STR "." MBG_MICRO_VERSION_STR "." MBG_BUILD_VERSION_STR
-#else
- #define MBG_NUMERIC_VERSION_STR MBG_SHORT_VERSION_STR "." MBG_MICRO_VERSION_STR
-#endif
+#define MBG_NUMERIC_VERSION_STR MBG_SHORT_VERSION_STR "." MBG_MICRO_VERSION_STR
+// If a version string has been derived from the git repo,
+// we use that one preferably.
#if defined( MBG_VERSION_FROM_GIT )
#define MBG_FULL_VERSION_STR STRINGIFY( MBG_VERSION_FROM_GIT )
#else