From 34effcfba08417a8f4fdac34c36d2ec0771ea813 Mon Sep 17 00:00:00 2001 From: Birunthan Mohanathas Date: Sat, 4 Feb 2012 16:13:04 +0000 Subject: [PATCH] Fixed build. --- Library/Rainmeter.h | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/Library/Rainmeter.h b/Library/Rainmeter.h index f7c01c4e..97292264 100644 --- a/Library/Rainmeter.h +++ b/Library/Rainmeter.h @@ -310,11 +310,14 @@ private: GlobalConfig m_GlobalConfig; }; -extern "C" -{ - int Initialize(HWND hWnd, HINSTANCE hInstance, LPCWSTR lpCmdLine); - void Quit(); - void ExecuteBang(LPCTSTR szBang); -} +#ifdef LIBRARY_EXPORTS +#define EXPORT_PLUGIN EXTERN_C +#else +#define EXPORT_PLUGIN EXTERN_C __declspec(dllimport) +#endif + +EXPORT_PLUGIN int Initialize(HWND hWnd, HINSTANCE hInstance, LPCWSTR lpCmdLine); +EXPORT_PLUGIN void Quit(); +EXPORT_PLUGIN void ExecuteBang(LPCTSTR szBang); #endif