summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDom Lachowicz <domlachowicz@gmail.com>2003-08-18 18:56:02 +0000
committerDom Lachowicz <domlachowicz@gmail.com>2003-08-18 18:56:02 +0000
commit6c9e6e7b0390df8f9a7c5548b9b406a73a78e2c5 (patch)
treef501d2eaf0a97f88cb9151fe687fa71536d395a5
parent0abbfd7609d204243e7d05cc306048a415734516 (diff)
downloadenchant-6c9e6e7b0390df8f9a7c5548b9b406a73a78e2c5.tar.gz
more win32 work
git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@20801 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
-rw-r--r--src/enchant-provider.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/enchant-provider.h b/src/enchant-provider.h
index 155842f..d5231cd 100644
--- a/src/enchant-provider.h
+++ b/src/enchant-provider.h
@@ -36,15 +36,18 @@
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
-#define ENCHANT_PLUGIN_DECLARE(name) static HANDLE s_hModule = (HANDLE)(NULL); BOOL APIENTRY DllMain( HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved ) { s_hModule = hModule; return TRUE; }
-#else
-#define ENCHANT_PLUGIN_DECLARE(name)
#endif
#ifdef __cplusplus
extern "C" {
#endif
+#ifdef _WIN32
+#define ENCHANT_PLUGIN_DECLARE(name) static HANDLE s_hModule = (HANDLE)(NULL); BOOL APIENTRY DllMain( HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved ) { s_hModule = hModule; return TRUE; }
+#else
+#define ENCHANT_PLUGIN_DECLARE(name)
+#endif
+
typedef struct str_enchant_provider EnchantProvider;
ENCHANT_MODULE_EXPORT (char *)