summaryrefslogtreecommitdiff
path: root/plugins/DbChecker/src
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2013-02-23 15:21:10 +0000
committerKirill Volinsky <mataes2007@gmail.com>2013-02-23 15:21:10 +0000
commit526f8de873c0efe9dce69aad9e62ee3a57ade9a9 (patch)
tree381f73919b0ad01d551814c553c942bbe7448f10 /plugins/DbChecker/src
parent19074442841b7d7a67d402262bc9d80a86d3c8e5 (diff)
added version info
git-svn-id: http://svn.miranda-ng.org/main/trunk@3731 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/DbChecker/src')
-rw-r--r--plugins/DbChecker/src/dbchecker.h10
-rw-r--r--plugins/DbChecker/src/main.cpp7
-rw-r--r--plugins/DbChecker/src/version.h24
3 files changed, 17 insertions, 24 deletions
diff --git a/plugins/DbChecker/src/dbchecker.h b/plugins/DbChecker/src/dbchecker.h
index 4039cab040..ea7d3909ae 100644
--- a/plugins/DbChecker/src/dbchecker.h
+++ b/plugins/DbChecker/src/dbchecker.h
@@ -20,27 +20,19 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-#include <tchar.h>
-
#include <windows.h>
-#include <stdio.h>
-#include <stddef.h>
-#include <io.h>
-#include <stdarg.h>
#include <process.h>
-#include <direct.h>
#include <malloc.h>
#include <commctrl.h>
#include <time.h>
-#include <m_system.h>
-#include <m_system_cpp.h>
#include <newpluginapi.h>
#include <m_database.h>
#include <m_db_int.h>
#include <m_langpack.h>
#include "resource.h"
+#include "version.h"
#define WinVerMajor() LOBYTE(LOWORD(GetVersion()))
#define IsWinVerXPPlus() (WinVerMajor()>=5 && LOWORD(GetVersion())!=5)
diff --git a/plugins/DbChecker/src/main.cpp b/plugins/DbChecker/src/main.cpp
index 6a4e543372..cc09e35f78 100644
--- a/plugins/DbChecker/src/main.cpp
+++ b/plugins/DbChecker/src/main.cpp
@@ -18,7 +18,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "dbchecker.h"
-#include "version.h"
HINSTANCE hInst;
int hLangpack = 0;
@@ -31,7 +30,7 @@ PLUGININFOEX pluginInfoEx =
{
sizeof(pluginInfoEx),
__PLUGIN_NAME,
- __VERSION_DWORD,
+ PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM),
__DESCRIPTION,
__AUTHOR,
__AUTHOREMAIL,
@@ -39,12 +38,12 @@ PLUGININFOEX pluginInfoEx =
__AUTHORWEB,
UNICODE_AWARE | STATIC_PLUGIN,
// {A0138FC6-4C52-4501-AF93-7D3E20BCAE5B}
- { 0xa0138fc6, 0x4c52, 0x4501, { 0xaf, 0x93, 0x7d, 0x3e, 0x20, 0xbc, 0xae, 0x5b}}
+ {0xa0138fc6, 0x4c52, 0x4501, {0xaf, 0x93, 0x7d, 0x3e, 0x20, 0xbc, 0xae, 0x5b}}
};
/////////////////////////////////////////////////////////////////////////////////////////
-BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved)
+BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
hInst = hinstDLL;
return TRUE;
diff --git a/plugins/DbChecker/src/version.h b/plugins/DbChecker/src/version.h
index b6c1a876ae..83ebdb4e44 100644
--- a/plugins/DbChecker/src/version.h
+++ b/plugins/DbChecker/src/version.h
@@ -1,12 +1,14 @@
-#define __FILEVERSION_STRING 0,11,0,1
-#define __VERSION_STRING "0.11.0.1"
-#define __VERSION_DWORD PLUGIN_MAKE_VERSION(0, 11, 0, 1)
+#define __MAJOR_VERSION 0
+#define __MINOR_VERSION 11
+#define __RELEASE_NUM 0
+#define __BUILD_NUM 1
-#define __PLUGIN_NAME "Database Checker"
-#define __INTERNAL_NAME "dbchecker"
-#define __FILENAME "dbchecker.dll"
-#define __DESCRIPTION "Miranda NG Database Checker."
-#define __AUTHOR "George Hazan"
-#define __AUTHOREMAIL "ghazan@miranda-ng.org"
-#define __AUTHORWEB "http://www.miranda-ng.org/"
-#define __COPYRIGHT "© 2012, George Hazan"
+#define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM
+
+#define __PLUGIN_NAME "Database checker"
+#define __FILENAME "DbChecker.dll"
+#define __DESCRIPTION "Miranda NG Database Checker."
+#define __AUTHOR "George Hazan"
+#define __AUTHOREMAIL "ghazan@miranda-ng.org"
+#define __AUTHORWEB "http://miranda-ng.org/"
+#define __COPYRIGHT "© 2012 George Hazan"