Rob Shearman : wine_common_ver.rc: Allow the file version number and string to be automatically constructed from major , minor, build and platform ID numbers.

Alexandre Julliard julliard at winehq.org
Mon Sep 8 07:41:12 CDT 2008


Module: wine
Branch: master
Commit: 0b2e574273d419cce155cb97ab16bcce5e0a2bbc
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=0b2e574273d419cce155cb97ab16bcce5e0a2bbc

Author: Rob Shearman <robertshearman at gmail.com>
Date:   Fri Sep  5 22:07:32 2008 +0100

wine_common_ver.rc: Allow the file version number and string to be automatically constructed from major, minor, build and platform ID numbers.

---

 include/wine/wine_common_ver.rc |   24 ++++++++++++++++++++++--
 1 files changed, 22 insertions(+), 2 deletions(-)

diff --git a/include/wine/wine_common_ver.rc b/include/wine/wine_common_ver.rc
index 8a4ae3b..f1a4644 100644
--- a/include/wine/wine_common_ver.rc
+++ b/include/wine/wine_common_ver.rc
@@ -27,12 +27,32 @@ to make sure that programs, relying on the version numbers, will
 never complain.
 */
 
+#ifndef WINE_FILEVERSION_MAJOR
+#define WINE_FILEVERSION_MAJOR 10
+#endif
+
+#ifndef WINE_FILEVERSION_MINOR
+#define WINE_FILEVERSION_MINOR 0
+#endif
+
+#ifndef WINE_FILEVERSION_BUILD
+#define WINE_FILEVERSION_BUILD 0
+#endif
+
+#ifndef WINE_FILEVERSION_PLATFORMID
+#define WINE_FILEVERSION_PLATFORMID 0
+#endif
+
 #ifndef WINE_FILEVERSION
-#define WINE_FILEVERSION 10,0,0,0
+#define WINE_FILEVERSION WINE_FILEVERSION_MAJOR,WINE_FILEVERSION_MINOR,\
+                         WINE_FILEVERSION_BUILD,WINE_FILEVERSION_PLATFORMID
 #endif
 
+#define WINE_VER_STRINGIZE2(x) #x
+#define WINE_VER_STRINGIZE(x) WINE_VER_STRINGIZE2(x)
+
 #ifndef WINE_FILEVERSION_STR
-#define WINE_FILEVERSION_STR "10.0"
+#define WINE_FILEVERSION_STR WINE_VER_STRINGIZE(WINE_FILEVERSION_MAJOR.WINE_FILEVERSION_MINOR.WINE_FILEVERSION_BUILD.WINE_FILEVERSION_PLATFORMID)
 #endif
 
 #ifndef WINE_FILEDESCRIPTION_STR




More information about the wine-cvs mailing list