summaryrefslogtreecommitdiff
path: root/plugins/VersionInfo
diff options
context:
space:
mode:
authorVadim Dashevskiy <watcherhd@gmail.com>2012-11-21 16:04:38 +0000
committerVadim Dashevskiy <watcherhd@gmail.com>2012-11-21 16:04:38 +0000
commitb61cd3d190d40825ec68d4f8b424347028aea80f (patch)
treeb0a03aae6d829ce1e1ded92de5b93401cf51b239 /plugins/VersionInfo
parent02ee191a693f13f868c67dd548114375af13f261 (diff)
consistent hash generation fix - part 6
git-svn-id: http://svn.miranda-ng.org/main/trunk@2417 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/VersionInfo')
-rw-r--r--plugins/VersionInfo/VersionInfo_10.vcxproj3
-rw-r--r--plugins/VersionInfo/VersionInfo_10.vcxproj.filters3
-rw-r--r--plugins/VersionInfo/src/common.h3
-rw-r--r--plugins/VersionInfo/src/main.cpp5
-rw-r--r--plugins/VersionInfo/src/stdafx.cpp18
-rw-r--r--plugins/VersionInfo/src/utils.cpp3
6 files changed, 26 insertions, 9 deletions
diff --git a/plugins/VersionInfo/VersionInfo_10.vcxproj b/plugins/VersionInfo/VersionInfo_10.vcxproj
index f98174029f..e25ce41abe 100644
--- a/plugins/VersionInfo/VersionInfo_10.vcxproj
+++ b/plugins/VersionInfo/VersionInfo_10.vcxproj
@@ -185,10 +185,11 @@
<ClCompile Include="src\CVersionInfo.cpp" />
<ClCompile Include="src\dlgHandlers.cpp" />
<ClCompile Include="src\hooked_events.cpp" />
- <ClCompile Include="src\main.cpp">
+ <ClCompile Include="src\stdafx.cpp">
<PrecompiledHeader>Create</PrecompiledHeader>
</ClCompile>
<ClCompile Include="src\services.cpp" />
+ <ClCompile Include="src\main.cpp" />
<ClCompile Include="src\utils.cpp" />
</ItemGroup>
<ItemGroup>
diff --git a/plugins/VersionInfo/VersionInfo_10.vcxproj.filters b/plugins/VersionInfo/VersionInfo_10.vcxproj.filters
index b5f5a05d9b..e84a5904c6 100644
--- a/plugins/VersionInfo/VersionInfo_10.vcxproj.filters
+++ b/plugins/VersionInfo/VersionInfo_10.vcxproj.filters
@@ -36,6 +36,9 @@
<ClCompile Include="src\utils.cpp">
<Filter>Source Files</Filter>
</ClCompile>
+ <ClCompile Include="src\stdafx.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="src\CPlugin.h">
diff --git a/plugins/VersionInfo/src/common.h b/plugins/VersionInfo/src/common.h
index 3182abc660..20d48e5f3b 100644
--- a/plugins/VersionInfo/src/common.h
+++ b/plugins/VersionInfo/src/common.h
@@ -18,6 +18,9 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#define STRICT
+#define WIN32_LEAN_AND_MEAN
+
#ifndef M_VERSIONINFO_COMMON_H
#define M_VERSIONINFO_COMMON_H
diff --git a/plugins/VersionInfo/src/main.cpp b/plugins/VersionInfo/src/main.cpp
index 53c75be86f..91e29e650e 100644
--- a/plugins/VersionInfo/src/main.cpp
+++ b/plugins/VersionInfo/src/main.cpp
@@ -18,11 +18,6 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-#define STRICT
-#define WIN32_LEAN_AND_MEAN
-
-#define _CRT_SECURE_NO_DEPRECATE
-
#include "common.h"
#include "CVersionInfo.h"
diff --git a/plugins/VersionInfo/src/stdafx.cpp b/plugins/VersionInfo/src/stdafx.cpp
new file mode 100644
index 0000000000..7a516adf58
--- /dev/null
+++ b/plugins/VersionInfo/src/stdafx.cpp
@@ -0,0 +1,18 @@
+/*
+Copyright (C) 2012 Miranda NG team (http://miranda-ng.org)
+
+This program is free software; you can redistribute it and/or
+modify it under the terms of the GNU General Public License
+as published by the Free Software Foundation version 2
+of the License.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
+#include "common.h" \ No newline at end of file
diff --git a/plugins/VersionInfo/src/utils.cpp b/plugins/VersionInfo/src/utils.cpp
index 9be552c8cc..bb63a3cf3f 100644
--- a/plugins/VersionInfo/src/utils.cpp
+++ b/plugins/VersionInfo/src/utils.cpp
@@ -20,9 +20,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//#define USE_LOG_FUNCTIONS
-#define STRICT
-#define WIN32_LEAN_AND_MEAN
-
#include "common.h"
#include "utils.h"