diff options
author | Milan Crha <mcrha@redhat.com> | 2014-07-11 03:01:42 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2014-07-11 03:01:42 +0800 |
commit | fa3d3c2403a3fcdd7bd4b66cb2acb7baf40ab231 (patch) | |
tree | f315f05c15fd4973a30f8dff1a29477ac8c2f803 /e-util/e-spell-dictionary.c | |
parent | 1690e6760f23f95f245d4acde8c768ccdedfc3b8 (diff) | |
download | gsoc2013-evolution-fa3d3c2403a3fcdd7bd4b66cb2acb7baf40ab231.tar gsoc2013-evolution-fa3d3c2403a3fcdd7bd4b66cb2acb7baf40ab231.tar.gz gsoc2013-evolution-fa3d3c2403a3fcdd7bd4b66cb2acb7baf40ab231.tar.bz2 gsoc2013-evolution-fa3d3c2403a3fcdd7bd4b66cb2acb7baf40ab231.tar.lz gsoc2013-evolution-fa3d3c2403a3fcdd7bd4b66cb2acb7baf40ab231.tar.xz gsoc2013-evolution-fa3d3c2403a3fcdd7bd4b66cb2acb7baf40ab231.tar.zst gsoc2013-evolution-fa3d3c2403a3fcdd7bd4b66cb2acb7baf40ab231.zip |
Bug 722068 - Make Evolution build under Win32
This also makes gnome-desktop an optional dependency, which can
be avoided with --disable-gnome-desktop configure option.
Diffstat (limited to 'e-util/e-spell-dictionary.c')
-rw-r--r-- | e-util/e-spell-dictionary.c | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/e-util/e-spell-dictionary.c b/e-util/e-spell-dictionary.c index e6e06b7d9a..12f2b6e568 100644 --- a/e-util/e-spell-dictionary.c +++ b/e-util/e-spell-dictionary.c @@ -20,6 +20,7 @@ #include <config.h> #endif +#include "e-util-private.h" #include "e-spell-dictionary.h" #include "e-spell-checker.h" @@ -69,27 +70,6 @@ G_DEFINE_TYPE ( #undef DATADIR #endif #include <shlobj.h> -static HMODULE hmodule; - -BOOL WINAPI -DllMain (HINSTANCE hinstDLL, - DWORD fdwReason, - LPVOID lpvReserved); - -BOOL WINAPI -DllMain (HINSTANCE hinstDLL, - DWORD fdwReason, - LPVOID lpvReserved) -{ - switch (fdwReason) - { - case DLL_PROCESS_ATTACH: - hmodule = hinstDLL; - break; - } - - return TRUE; -} static gchar * _get_iso_codes_prefix (void) @@ -101,7 +81,7 @@ _get_iso_codes_prefix (void) if (beenhere) return retval; - if (!(temp_dir = g_win32_get_package_installation_directory_of_module ((gpointer) hmodule))) { + if (!(temp_dir = g_win32_get_package_installation_directory_of_module (_e_get_dll_hmodule ()))) { strcpy (retval, ISO_CODES_PREFIX); return retval; } |