summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-06-02 21:11:34 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-06-02 21:11:34 +0000
commitdd556d2a3e2b7f7c4fdef1bcd9a7293f730df732 (patch)
treee4d6c6ee828a51af87ca69f2e3d9f06ec5a866e8 /plugins
parentec36adde2c033cdf5129c9686ed89069c38896aa (diff)
precompiled headers for WhenWasIt
git-svn-id: http://svn.miranda-ng.org/main/trunk@273 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/WhenWasIt/WhenWasIt_10.vcxproj19
-rw-r--r--plugins/WhenWasIt/WhenWasIt_10.vcxproj.filters2
-rw-r--r--plugins/WhenWasIt/birthdays.cpp1
-rw-r--r--plugins/WhenWasIt/birthdays.h2
-rw-r--r--plugins/WhenWasIt/commonheaders.h3
-rw-r--r--plugins/WhenWasIt/date_utils.cpp1
-rw-r--r--plugins/WhenWasIt/date_utils.h1
-rw-r--r--plugins/WhenWasIt/dlg_handlers.cpp1
-rw-r--r--plugins/WhenWasIt/dlg_handlers.h2
-rw-r--r--plugins/WhenWasIt/events.cpp1
-rw-r--r--plugins/WhenWasIt/events.h2
-rw-r--r--plugins/WhenWasIt/hooked_events.cpp1
-rw-r--r--plugins/WhenWasIt/hooked_events.h1
-rw-r--r--plugins/WhenWasIt/icons.cpp1
-rw-r--r--plugins/WhenWasIt/icons.h3
-rw-r--r--plugins/WhenWasIt/notifiers.cpp1
-rw-r--r--plugins/WhenWasIt/notifiers.h2
-rw-r--r--plugins/WhenWasIt/services.cpp1
-rw-r--r--plugins/WhenWasIt/services.h2
-rw-r--r--plugins/WhenWasIt/utils.cpp1
-rw-r--r--plugins/WhenWasIt/utils.h1
21 files changed, 29 insertions, 20 deletions
diff --git a/plugins/WhenWasIt/WhenWasIt_10.vcxproj b/plugins/WhenWasIt/WhenWasIt_10.vcxproj
index 83e0024b16..e78b79bb1c 100644
--- a/plugins/WhenWasIt/WhenWasIt_10.vcxproj
+++ b/plugins/WhenWasIt/WhenWasIt_10.vcxproj
@@ -82,6 +82,8 @@
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
<AdditionalIncludeDirectories>..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>commonheaders.h</PrecompiledHeaderFile>
</ClCompile>
<Link>
<AdditionalDependencies>comctl32.lib;%(AdditionalDependencies)</AdditionalDependencies>
@@ -106,6 +108,8 @@
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<AdditionalIncludeDirectories>..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>commonheaders.h</PrecompiledHeaderFile>
</ClCompile>
<Link>
<AdditionalDependencies>comctl32.lib;%(AdditionalDependencies)</AdditionalDependencies>
@@ -129,7 +133,9 @@
<InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
<FavorSizeOrSpeed>Size</FavorSizeOrSpeed>
<WarningLevel>Level3</WarningLevel>
- <PreprocessorDefinitions>WIN64;NDEBUG;_USE_32BIT_TIME_T;_WINDOWS;_USRDLL;WHENWASIT_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <PreprocessorDefinitions>WIN64;NDEBUG;_WINDOWS;_USRDLL;WHENWASIT_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>commonheaders.h</PrecompiledHeaderFile>
</ClCompile>
<Link>
<AdditionalDependencies>comctl32.lib;%(AdditionalDependencies)</AdditionalDependencies>
@@ -152,8 +158,10 @@
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
<WarningLevel>Level3</WarningLevel>
- <PreprocessorDefinitions>WIN64;_DEBUG;_USE_32BIT_TIME_T;_WINDOWS;_USRDLL;WHENWASIT_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <PreprocessorDefinitions>WIN64;_DEBUG;_WINDOWS;_USRDLL;WHENWASIT_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<Optimization>Disabled</Optimization>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>commonheaders.h</PrecompiledHeaderFile>
</ClCompile>
<Link>
<AdditionalDependencies>comctl32.lib;%(AdditionalDependencies)</AdditionalDependencies>
@@ -178,7 +186,12 @@
<ClCompile Include="notifiers.cpp" />
<ClCompile Include="services.cpp" />
<ClCompile Include="utils.cpp" />
- <ClCompile Include="WhenWasIt.cpp" />
+ <ClCompile Include="WhenWasIt.cpp">
+ <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
+ <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
+ <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
+ <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
+ </ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="birthdays.h" />
diff --git a/plugins/WhenWasIt/WhenWasIt_10.vcxproj.filters b/plugins/WhenWasIt/WhenWasIt_10.vcxproj.filters
index 0a4f4f6b4d..fda13603f3 100644
--- a/plugins/WhenWasIt/WhenWasIt_10.vcxproj.filters
+++ b/plugins/WhenWasIt/WhenWasIt_10.vcxproj.filters
@@ -142,7 +142,7 @@
<None Include="icons\refresh.ico">
<Filter>Resource Files</Filter>
</None>
- <None Include="..\docs\WhenWasIt_readme.txt" />
+ <None Include="docs\WhenWasIt_readme.txt" />
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="version.rc">
diff --git a/plugins/WhenWasIt/birthdays.cpp b/plugins/WhenWasIt/birthdays.cpp
index 357936a866..baed614aad 100644
--- a/plugins/WhenWasIt/birthdays.cpp
+++ b/plugins/WhenWasIt/birthdays.cpp
@@ -18,6 +18,7 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#include "commonheaders.h"
#include "birthdays.h"
CBirthdays &birthdays = CBirthdays();
diff --git a/plugins/WhenWasIt/birthdays.h b/plugins/WhenWasIt/birthdays.h
index b20dd88554..c54042800c 100644
--- a/plugins/WhenWasIt/birthdays.h
+++ b/plugins/WhenWasIt/birthdays.h
@@ -21,8 +21,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#ifndef M_WWI_BIRTHDAYS_H
#define M_WWI_BIRTHDAYS_H
-#include "commonheaders.h"
-
struct TBirthdayContact{
HANDLE hContact;
HANDLE hClistIcon;
diff --git a/plugins/WhenWasIt/commonheaders.h b/plugins/WhenWasIt/commonheaders.h
index c3e9cc1734..f61d5fe547 100644
--- a/plugins/WhenWasIt/commonheaders.h
+++ b/plugins/WhenWasIt/commonheaders.h
@@ -21,6 +21,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#ifndef M_WWI_COMMONHEADERS_H
#define M_WWI_COMMONHEADERS_H
+#define _CRT_SECURE_NO_WARNINGS
+#define _CRT_NON_CONFORMING_SWPRINTFS
+
#define MIRANDA_VER 0x0A00
#include <stdio.h>
diff --git a/plugins/WhenWasIt/date_utils.cpp b/plugins/WhenWasIt/date_utils.cpp
index e4c8195890..e9da2253e0 100644
--- a/plugins/WhenWasIt/date_utils.cpp
+++ b/plugins/WhenWasIt/date_utils.cpp
@@ -18,6 +18,7 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#include "commonheaders.h"
#include "date_utils.h"
time_t Today()
diff --git a/plugins/WhenWasIt/date_utils.h b/plugins/WhenWasIt/date_utils.h
index 624fceb155..45db98fad7 100644
--- a/plugins/WhenWasIt/date_utils.h
+++ b/plugins/WhenWasIt/date_utils.h
@@ -21,7 +21,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#ifndef H_WWI_DATE_UTILS_H
#define H_WWI_DATE_UTILS_H
-#include "commonheaders.h"
#include "errno.h"
#define SAVE_MODE_STANDARD 0
diff --git a/plugins/WhenWasIt/dlg_handlers.cpp b/plugins/WhenWasIt/dlg_handlers.cpp
index 7e907264bd..86b64effcc 100644
--- a/plugins/WhenWasIt/dlg_handlers.cpp
+++ b/plugins/WhenWasIt/dlg_handlers.cpp
@@ -18,6 +18,7 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#include "commonheaders.h"
#include "dlg_handlers.h"
#define COLOR_USERINFO RGB(138, 190, 160)
diff --git a/plugins/WhenWasIt/dlg_handlers.h b/plugins/WhenWasIt/dlg_handlers.h
index c335ad026e..10e1b1ff2b 100644
--- a/plugins/WhenWasIt/dlg_handlers.h
+++ b/plugins/WhenWasIt/dlg_handlers.h
@@ -21,8 +21,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#ifndef M_WWI_DIALOG_HANDLERS_H
#define M_WWI_DIALOG_HANDLERS_H
-#include "commonheaders.h"
-
#define FOREGROUND_COLOR RGB(0, 64, 128)
#define BACKGROUND_COLOR RGB(255, 255, 255)
diff --git a/plugins/WhenWasIt/events.cpp b/plugins/WhenWasIt/events.cpp
index d9b9eab75e..70dc0ffee4 100644
--- a/plugins/WhenWasIt/events.cpp
+++ b/plugins/WhenWasIt/events.cpp
@@ -18,6 +18,7 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#include "commonheaders.h"
#include "events.h"
HANDLE heContactSendMessage;
diff --git a/plugins/WhenWasIt/events.h b/plugins/WhenWasIt/events.h
index 7944673fbf..8d63e59630 100644
--- a/plugins/WhenWasIt/events.h
+++ b/plugins/WhenWasIt/events.h
@@ -21,8 +21,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#ifndef M_WWI_EVENTS_H
#define M_WWI_EVENTS_H
-#include "commonheaders.h"
-
#define ME_WWI_SENDMESSAGE "WWI/ContactSendMessage"
extern HANDLE heContactSendMessage;
diff --git a/plugins/WhenWasIt/hooked_events.cpp b/plugins/WhenWasIt/hooked_events.cpp
index 4c23bc2bf4..20e9bfc86d 100644
--- a/plugins/WhenWasIt/hooked_events.cpp
+++ b/plugins/WhenWasIt/hooked_events.cpp
@@ -18,6 +18,7 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#include "commonheaders.h"
#include "hooked_events.h"
#define DATE_CHANGE_CHECK_INTERVAL 20
diff --git a/plugins/WhenWasIt/hooked_events.h b/plugins/WhenWasIt/hooked_events.h
index 8db02414ff..69c75f0531 100644
--- a/plugins/WhenWasIt/hooked_events.h
+++ b/plugins/WhenWasIt/hooked_events.h
@@ -21,7 +21,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#ifndef M_WWI_HOOKED_EVENTS_H
#define M_WWI_HOOKED_EVENTS_H
-#include "commonheaders.h"
#include "dlg_handlers.h"
extern HANDLE hModulesLoaded;
diff --git a/plugins/WhenWasIt/icons.cpp b/plugins/WhenWasIt/icons.cpp
index a366f9bf2c..facb02b574 100644
--- a/plugins/WhenWasIt/icons.cpp
+++ b/plugins/WhenWasIt/icons.cpp
@@ -18,6 +18,7 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#include "commonheaders.h"
#include "icons.h"
//HICON hiDlg = NULL;
diff --git a/plugins/WhenWasIt/icons.h b/plugins/WhenWasIt/icons.h
index 42095b51f7..f9d85ce7a4 100644
--- a/plugins/WhenWasIt/icons.h
+++ b/plugins/WhenWasIt/icons.h
@@ -21,9 +21,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#ifndef M_WWI_ICONS_H
#define M_WWI_ICONS_H
-#include "commonheaders.h"
-
-//extern HICON hiDlg;
extern HICON hiMainMenu;
extern HICON hiCheckMenu;
extern HICON hiListMenu;
diff --git a/plugins/WhenWasIt/notifiers.cpp b/plugins/WhenWasIt/notifiers.cpp
index 654dbbbe53..102511cfaa 100644
--- a/plugins/WhenWasIt/notifiers.cpp
+++ b/plugins/WhenWasIt/notifiers.cpp
@@ -18,6 +18,7 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#include "commonheaders.h"
#include "notifiers.h"
void FillPopupData(POPUPDATAT &pd, int dtb)
diff --git a/plugins/WhenWasIt/notifiers.h b/plugins/WhenWasIt/notifiers.h
index 22ddb96c8d..ff9f9fe229 100644
--- a/plugins/WhenWasIt/notifiers.h
+++ b/plugins/WhenWasIt/notifiers.h
@@ -21,8 +21,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#ifndef M_WWI_NOTIFIERS_H
#define M_WWI_NOTIFIERS_H
-#include "commonheaders.h"
-
#ifdef _UNICODE
#define POPUPDATAT POPUPDATAW
#define PUAddPopUpT PUAddPopUpW
diff --git a/plugins/WhenWasIt/services.cpp b/plugins/WhenWasIt/services.cpp
index 303866bffa..09edb81c80 100644
--- a/plugins/WhenWasIt/services.cpp
+++ b/plugins/WhenWasIt/services.cpp
@@ -18,6 +18,7 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#include "commonheaders.h"
#include "services.h"
#define COMMENT_CHAR '#'
diff --git a/plugins/WhenWasIt/services.h b/plugins/WhenWasIt/services.h
index 39f49abde6..47619acc26 100644
--- a/plugins/WhenWasIt/services.h
+++ b/plugins/WhenWasIt/services.h
@@ -40,8 +40,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#define NOTFOUND_FORMAT "Could not find UID '%s [%s]' in current database, skipping"
#endif
-#include "commonheaders.h"
-
extern int bShouldCheckBirthdays;
extern int bBirthdayFound;
diff --git a/plugins/WhenWasIt/utils.cpp b/plugins/WhenWasIt/utils.cpp
index 36759393f0..86dfc05c44 100644
--- a/plugins/WhenWasIt/utils.cpp
+++ b/plugins/WhenWasIt/utils.cpp
@@ -18,6 +18,7 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#include "commonheaders.h"
#include "utils.h"
int LogInit()
diff --git a/plugins/WhenWasIt/utils.h b/plugins/WhenWasIt/utils.h
index 0528c0440f..6d76c72d2a 100644
--- a/plugins/WhenWasIt/utils.h
+++ b/plugins/WhenWasIt/utils.h
@@ -22,7 +22,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#define M_WWI_UTILS_H
#include <stdarg.h>
-#include "commonheaders.h"
#define LOG_FILE "wwi.log"