summaryrefslogtreecommitdiff
path: root/plugins/IEHistory/src/commonheaders.h
diff options
context:
space:
mode:
authorRené Schümann <white06tiger@gmail.com>2014-08-21 11:42:31 +0000
committerRené Schümann <white06tiger@gmail.com>2014-08-21 11:42:31 +0000
commit2ae4a360da9638ecaaa68bbb683187ef8e1faf35 (patch)
tree99a533c91fccdd70bb8bde2360f42bd5a6b7703b /plugins/IEHistory/src/commonheaders.h
parentd33b48c34e2ce98bd5a73698006be3859a7dfbc4 (diff)
IEHistory: Miranda NG compatibility.
- removed mirandaMem * GetWindowLong => GetWindowLongPtr * SetWindowLong => SetWindowLongPtr * DLGPROC returning int/BOOL => INT_PTR * CallService(MS_DB_EVENT_*) => db_event_* * DBGetContactSetting* => db_get_* * DBWriteContactSetting => db_set_* * contact HANDLE => MCONTACT * CallService(MS_CLIST_ADD*MENUITEM,...) => Menu_Add*MenuItem() * improved GetContactName() - removed some #pragma warning's * version bump to 0.0.1.5 git-svn-id: http://svn.miranda-ng.org/main/trunk@10253 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/IEHistory/src/commonheaders.h')
-rw-r--r--plugins/IEHistory/src/commonheaders.h71
1 files changed, 36 insertions, 35 deletions
diff --git a/plugins/IEHistory/src/commonheaders.h b/plugins/IEHistory/src/commonheaders.h
index e687a27f02..322932f1e4 100644
--- a/plugins/IEHistory/src/commonheaders.h
+++ b/plugins/IEHistory/src/commonheaders.h
@@ -34,27 +34,46 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "version.h"
#include "utils.h"
-#include "mirandaMem.h"
#include "events.h"
#include "dlgHandlers.h"
-#include "../../../include/newpluginapi.h"
-#include "../../../include/m_database.h"
-#include "../../../include/m_utils.h"
-#include "../../../include/m_system.h"
-#include "../../../include/m_skin.h"
-#include "../../../include/m_options.h"
-#include "../../../include/m_clist.h"
-#include "../../../include/m_langpack.h"
-#include "../../../include/m_history.h"
-#include "../../../include/m_contacts.h"
-//#include "../../../include/m_utils.h"
-#include "../../../include/m_popup.h"
-#include "../../../include/m_ieview.h"
-#include "../../../include/m_updater.h"
-
+#include <newpluginapi.h>
+#include <m_database.h>
+#include <m_utils.h>
+#include <m_system.h>
+#include <m_skin.h>
+#include <m_options.h>
+#include <m_clist.h>
+#include <m_langpack.h>
+#include <m_history.h>
+#include <m_contacts.h>
+#include <m_metacontacts.h>
+#include <m_protocols.h>
+//#include <m_utils.h>
+#include <m_popup.h>
+#include <m_ieview.h>
+
+static FILE* fopen_s2(const char* file,const char* mode){
+ FILE* ret=NULL; fopen_s(&ret,file,mode);
+ return ret;
+}
+#define fopen fopen_s2
+#define strcat strcat_s
+#define _vsnprintf _vsnprintf_s
+#define snprintf _snprintf_s
+#define snwprintf _snwprintf_s
+#define sprintf sprintf_s
+#define itow _itow_s
+#ifndef _UNICODE
+# define itot itoa
+# define sntprintf snprintf
+#else
+# define itot itow
+# define sntprintf snwprintf
+#endif
extern HICON hIcon; //history icon
+extern int hLangpack;
extern char ModuleName[];
extern HINSTANCE hInstance; //dll instance
extern HANDLE hOpenWindowsList;
@@ -63,22 +82,4 @@ extern PLUGININFOEX pluginInfo;
extern BOOL (WINAPI *MyEnableThemeDialogTexture)(HANDLE, DWORD);
-#define OLD_MIRANDAPLUGININFO_SUPPORT PLUGININFO oldPluginInfo = { \
- sizeof(PLUGININFO), \
- pluginInfo.shortName, \
- pluginInfo.version, \
- pluginInfo.description, \
- pluginInfo.author, \
- pluginInfo.authorEmail, \
- pluginInfo.copyright, \
- pluginInfo.homepage, \
- pluginInfo.flags, \
- pluginInfo.replacesDefaultModule \
-}; \
-\
-extern "C" __declspec(dllexport) PLUGININFO *MirandaPluginInfo(DWORD mirandaVersion) \
-{ \
- return &oldPluginInfo; \
-}
-
-#endif \ No newline at end of file
+#endif