diff options
Diffstat (limited to 'plugins/StartupSilence')
-rw-r--r-- | plugins/StartupSilence/res/version.rc | 2 | ||||
-rw-r--r-- | plugins/StartupSilence/src/version.h | 57 |
2 files changed, 13 insertions, 46 deletions
diff --git a/plugins/StartupSilence/res/version.rc b/plugins/StartupSilence/res/version.rc index 2ba5a1d38f..3718fa2306 100644 --- a/plugins/StartupSilence/res/version.rc +++ b/plugins/StartupSilence/res/version.rc @@ -34,7 +34,7 @@ BEGIN VALUE "OriginalFilename", __FILENAME
VALUE "FileVersion", __VERSION_STRING
VALUE "ProductName", "Miranda NG"
- VALUE "ProductVersion", __PROD_VERSION_STRING
+ VALUE "ProductVersion", __VERSION_STRING
END
END
BLOCK "VarFileInfo"
diff --git a/plugins/StartupSilence/src/version.h b/plugins/StartupSilence/src/version.h index c3b73aa38b..54bf3d0975 100644 --- a/plugins/StartupSilence/src/version.h +++ b/plugins/StartupSilence/src/version.h @@ -5,52 +5,19 @@ // find it under Project properties - Configuration properties - Resource - General - Preprocessor definitions)
// plugin version part
-#define __MAJOR_VERSION 0
-#define __MINOR_VERSION 2
-#define __RELEASE_NUM 0
-#define __BUILD_NUM 0
-
-// minimal MirandaIM version number, with which this plugin supposed to work
-#define __PROD_MAJOR_VERSION 0
-#define __PROD_MINOR_VERSION 93
-#define __PROD_RELEASE_NUM 5
-#define __PROD_BUILD_NUM 0
-// if your plugin works only with Miranda core beginning from specific revision, you can include this information in Product Version resource
-//#define __PROD_REV_NUM 1234
+#define __MAJOR_VERSION 0
+#define __MINOR_VERSION 2
+#define __RELEASE_NUM 0
+#define __BUILD_NUM 0
// stuff that will be used in PluginInfo section and in Version resource
-#define __PLUGIN_NAME "StartupSilence"
-#define __FILENAME "StartupSilence.dll"
-#define __DESC "Suppresses popups and mutes sounds for 10-300 sec at Miranda NG startup, then sets them back to predefined state (Automatically per computer settings)."
-#define __AUTHOR "Vladimir Lyubimov"
-#define __AUTHOREMAIL ""
-#define __AUTHORWEB "http://miranda-ng.org/"
-#define __COPYRIGHT "© 2012-2013 Vladimir Lyubimov"
+#define __PLUGIN_NAME "StartupSilence"
+#define __FILENAME "StartupSilence.dll"
+#define __DESC "Suppresses popups and mutes sounds for 10-300 sec at Miranda NG startup, then sets them back to predefined state (Automatically per computer settings)."
+#define __AUTHOR "Vladimir Lyubimov"
+#define __AUTHOREMAIL ""
+#define __AUTHORWEB "http://miranda-ng.org/"
+#define __COPYRIGHT "© 2012-2013 Vladimir Lyubimov"
// other stuff for Version resource
-#define __STRINGIFY_IMPL(x) #x
-#define __STRINGIFY(x) __STRINGIFY_IMPL(x)
-
-#define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM
-#define __FILEVERSION_STRING_DOTS __MAJOR_VERSION.__MINOR_VERSION.__RELEASE_NUM.__BUILD_NUM
-#ifdef _UNICODE
-#ifdef __REV_NUM
-#define __VERSION_STRING __STRINGIFY(__FILEVERSION_STRING_DOTS rev. __REV_NUM Unicode)
-#else
-#define __VERSION_STRING __STRINGIFY(__FILEVERSION_STRING_DOTS Unicode)
-#endif
-#else
-#ifdef __REV_NUM
-#define __VERSION_STRING __STRINGIFY(__FILEVERSION_STRING_DOTS rev. __REV_NUM)
-#else
-#define __VERSION_STRING __STRINGIFY(__FILEVERSION_STRING_DOTS)
-#endif
-#endif
-
-#define __PRODVERSION_STRING __PROD_MAJOR_VERSION,__PROD_MINOR_VERSION,__PROD_RELEASE_NUM,__PROD_BUILD_NUM
-#define __PRODVERSION_STRING_DOTS __PROD_MAJOR_VERSION.__PROD_MINOR_VERSION.__PROD_RELEASE_NUM.__PROD_BUILD_NUM
-#ifdef __PROD_REV_NUM
-#define __PROD_VERSION_STRING __STRINGIFY(__PRODVERSION_STRING_DOTS rev. __PROD_REV_NUM)
-#else
-#define __PROD_VERSION_STRING __STRINGIFY(__PRODVERSION_STRING_DOTS+)
-#endif
+#include <stdver.h>
|