diff options
| author | Kirill Volinsky <mataes2007@gmail.com> | 2012-07-23 20:25:27 +0000 | 
|---|---|---|
| committer | Kirill Volinsky <mataes2007@gmail.com> | 2012-07-23 20:25:27 +0000 | 
| commit | 35d4044e1958d2cd68553837a0da0829bd3b98f4 (patch) | |
| tree | 5902a4fafebcdfaeda78c484f4baa6cab4b6ae7c | |
| parent | e5cc66467b9b2ee4f1d3b8c25afa36e3c04e1428 (diff) | |
SeenPlugin:
now use precompiled header
git-svn-id: http://svn.miranda-ng.org/main/trunk@1140 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
| -rw-r--r-- | plugins/SeenPlugin/seenplugin_10.vcxproj | 16 | ||||
| -rw-r--r-- | plugins/SeenPlugin/src/history.cpp | 2 | ||||
| -rw-r--r-- | plugins/SeenPlugin/src/seen.h | 13 | ||||
| -rw-r--r-- | plugins/SeenPlugin/src/userinfo.cpp | 2 | ||||
| -rw-r--r-- | plugins/SeenPlugin/src/utils.cpp | 8 | 
5 files changed, 24 insertions, 17 deletions
| diff --git a/plugins/SeenPlugin/seenplugin_10.vcxproj b/plugins/SeenPlugin/seenplugin_10.vcxproj index 4e83e465ef..5873a871c2 100644 --- a/plugins/SeenPlugin/seenplugin_10.vcxproj +++ b/plugins/SeenPlugin/seenplugin_10.vcxproj @@ -75,10 +75,12 @@        <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
        <FavorSizeOrSpeed>Size</FavorSizeOrSpeed>
        <AdditionalIncludeDirectories>..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
 -      <PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;_CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_DEPRECATE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
 +      <PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
        <StringPooling>true</StringPooling>
        <FunctionLevelLinking>true</FunctionLevelLinking>
        <WarningLevel>Level3</WarningLevel>
 +      <PrecompiledHeader>Use</PrecompiledHeader>
 +      <PrecompiledHeaderFile>seen.h</PrecompiledHeaderFile>
      </ClCompile>
      <ResourceCompile>
        <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
 @@ -102,10 +104,12 @@        <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
        <FavorSizeOrSpeed>Size</FavorSizeOrSpeed>
        <AdditionalIncludeDirectories>..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
 -      <PreprocessorDefinitions>WIN64;NDEBUG;_WINDOWS;_USRDLL;_CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_DEPRECATE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
 +      <PreprocessorDefinitions>WIN64;NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
        <StringPooling>true</StringPooling>
        <FunctionLevelLinking>true</FunctionLevelLinking>
        <WarningLevel>Level3</WarningLevel>
 +      <PrecompiledHeader>Use</PrecompiledHeader>
 +      <PrecompiledHeaderFile>seen.h</PrecompiledHeaderFile>
      </ClCompile>
      <ResourceCompile>
        <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
 @@ -133,6 +137,8 @@        <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
        <WarningLevel>Level3</WarningLevel>
        <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
 +      <PrecompiledHeader>Use</PrecompiledHeader>
 +      <PrecompiledHeaderFile>seen.h</PrecompiledHeaderFile>
      </ClCompile>
      <ResourceCompile>
        <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
 @@ -156,6 +162,8 @@        <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
        <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
        <WarningLevel>Level3</WarningLevel>
 +      <PrecompiledHeader>Use</PrecompiledHeader>
 +      <PrecompiledHeaderFile>seen.h</PrecompiledHeaderFile>
      </ClCompile>
      <ResourceCompile>
        <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
 @@ -174,7 +182,9 @@    <ItemGroup>
      <ClCompile Include="src\file.cpp" />
      <ClCompile Include="src\history.cpp" />
 -    <ClCompile Include="src\main.cpp" />
 +    <ClCompile Include="src\main.cpp">
 +      <PrecompiledHeader>Create</PrecompiledHeader>
 +    </ClCompile>
      <ClCompile Include="src\menu.cpp" />
      <ClCompile Include="src\missed.cpp" />
      <ClCompile Include="src\options.cpp" />
 diff --git a/plugins/SeenPlugin/src/history.cpp b/plugins/SeenPlugin/src/history.cpp index 724cfd5612..fa90264fda 100644 --- a/plugins/SeenPlugin/src/history.cpp +++ b/plugins/SeenPlugin/src/history.cpp @@ -34,7 +34,7 @@ char* BuildSetting(int historyLast) {  	static char sztemp[15];
  	*setting = '\0';
  	strcat(setting, "History_");
 -	strcat(setting, itoa(historyLast, sztemp, 10));
 +	strcat(setting, _itot(historyLast, sztemp, 10));
  	return setting;
  }
 diff --git a/plugins/SeenPlugin/src/seen.h b/plugins/SeenPlugin/src/seen.h index ba2b13a6c2..574126459d 100644 --- a/plugins/SeenPlugin/src/seen.h +++ b/plugins/SeenPlugin/src/seen.h @@ -16,19 +16,17 @@ 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, write to the Free Software
  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 -
 -File name      : $URL: http://svn.berlios.de/svnroot/repos/mgoodies/trunk/lastseen-mod/seen.h $
 -Revision       : $Rev: 1570 $
 -Last change on : $Date: 2007-12-30 01:30:07 +0300 (Вс, 30 дек 2007) $
 -Last change by : $Author: y_b $
  */
 +
  #ifndef _WIN32_IE
  #define _WIN32_IE 0x0300
  #endif
  #define ETDT_ENABLE         0x00000002
  #define ETDT_USETABTEXTURE  0x00000004
  #define ETDT_ENABLETAB      (ETDT_ENABLE  | ETDT_USETABTEXTURE)
 +
  #define MIRANDA_VER    0x0A00
 +#define _CRT_SECURE_NO_WARNINGS
  #include <windows.h>
  #include <win2k.h>
 @@ -37,25 +35,24 @@ Last change by : $Author: y_b $  #include <string.h>
  #include "resource.h"
 +
  #include <newpluginapi.h>
  #include <m_database.h>
  #include <m_langpack.h>
 -
  #include <m_system.h>
  #include <m_skin.h>
  #include <m_utils.h>
  #include <m_options.h>
  #include <m_userinfo.h>
  #include <m_clist.h>
 -#include <m_userinfo.h>
  #include <m_contacts.h>
  #include <m_message.h>
  #include <m_protosvc.h>
  #include <m_protocols.h>
  #include <m_popup.h>
 -#include <m_system.h>
  #include "m_tipper.h"
 +
  WCHAR *any_to_IdleNotidleUnknown(HANDLE hContact, const char *module_name, const char *setting_name, WCHAR *buff, int bufflen);
  WCHAR *any_to_Idle(HANDLE hContact, const char *module_name, const char *setting_name, WCHAR *buff, int bufflen);
 diff --git a/plugins/SeenPlugin/src/userinfo.cpp b/plugins/SeenPlugin/src/userinfo.cpp index 442860bb86..48d6523818 100644 --- a/plugins/SeenPlugin/src/userinfo.cpp +++ b/plugins/SeenPlugin/src/userinfo.cpp @@ -59,7 +59,7 @@ INT_PTR CALLBACK UserinfoDlgProc(HWND hdlg,UINT msg,WPARAM wparam,LPARAM lparam)  		case WM_INITDIALOG:
  			MainProc=(WNDPROC)SetWindowLongPtr(GetDlgItem(hdlg,IDC_INFOTEXT),GWLP_WNDPROC,(LONG)EditProc);
 -			szout=strdup(ParseString((!DBGetContactSetting(NULL,S_MOD,"UserStamp",&dbv)?dbv.pszVal:DEFAULT_USERSTAMP),(HANDLE)lparam,0));
 +			szout = _strdup(ParseString((!DBGetContactSetting(NULL,S_MOD,"UserStamp",&dbv)?dbv.pszVal:DEFAULT_USERSTAMP),(HANDLE)lparam,0));
  			SetDlgItemText(hdlg,IDC_INFOTEXT,szout);
  			if (!strcmp(szout,Translate("<unknown>")))
  			EnableWindow(GetDlgItem(hdlg,IDC_INFOTEXT),FALSE);
 diff --git a/plugins/SeenPlugin/src/utils.cpp b/plugins/SeenPlugin/src/utils.cpp index d989f9e999..279541907f 100644 --- a/plugins/SeenPlugin/src/utils.cpp +++ b/plugins/SeenPlugin/src/utils.cpp @@ -299,16 +299,16 @@ LBL_charPtr:  						switch(ci.type)
  						{
  							case CNFT_BYTE:
 -								ltoa(ci.bVal,szdbsetting,10);
 +								_ltot(ci.bVal, szdbsetting, 10);
  								break;
  							case CNFT_WORD:
 -								ltoa(ci.wVal,szdbsetting,10);
 +								_ltot(ci.wVal, szdbsetting, 10);
  								break;
  							case CNFT_DWORD:
 -								ltoa(ci.dVal,szdbsetting,10);
 +								_ltot(ci.dVal, szdbsetting, 10);
  								break;
  							case CNFT_ASCIIZ:
 -								strcpy(szdbsetting,ci.pszVal);
 +								strcpy(szdbsetting, ci.pszVal);
  								break;
  						}
 | 
