[evolution] Fix Windows build



commit d97ab45f5c7cbb335b1b6ebf88ee58066ef5d3b7
Author: Tor Lillqvist <tml iki fi>
Date:   Wed Nov 11 18:21:44 2009 +0200

    Fix Windows build
    
    There was a strange typo, e_util_replace_prefix() is what was
    intended. Thus include libedataserver/e-data-server-util.h.

 modules/plugin-lib/Makefile.am    |    1 +
 modules/plugin-lib/e-plugin-lib.c |    6 +++++-
 2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/modules/plugin-lib/Makefile.am b/modules/plugin-lib/Makefile.am
index 73c4c8f..b958a9a 100644
--- a/modules/plugin-lib/Makefile.am
+++ b/modules/plugin-lib/Makefile.am
@@ -4,6 +4,7 @@ libevolution_module_plugin_lib_la_CPPFLAGS =			\
 	$(AM_CPPFLAGS)						\
 	-DG_LOG_DOMAIN=\"evolution-plugin-lib\"			\
 	-I$(top_srcdir)						\
+	-DEVOLUTION_PREFIX=\""$(prefix)"\"			\
 	$(E_UTIL_CFLAGS)
 
 libevolution_module_plugin_lib_la_SOURCES =			\
diff --git a/modules/plugin-lib/e-plugin-lib.c b/modules/plugin-lib/e-plugin-lib.c
index 7b72053..1cade4b 100644
--- a/modules/plugin-lib/e-plugin-lib.c
+++ b/modules/plugin-lib/e-plugin-lib.c
@@ -21,6 +21,10 @@
 
 #include "e-plugin-lib.h"
 
+#ifdef G_OS_WIN32
+#include <libedataserver/e-data-server-util.h> /* for e_util_replace_prefix() */
+#endif
+
 #include <string.h>
 
 static gpointer parent_class;
@@ -122,7 +126,7 @@ plugin_lib_construct (EPlugin *plugin, xmlNodePtr root)
 #ifdef G_OS_WIN32
 	{
 		gchar *mapped_location =
-			e_util_rplugin_libace_prefix (EVOLUTION_PREFIX,
+			e_util_replace_prefix (EVOLUTION_PREFIX,
 					       e_util_get_prefix (),
 					       plugin_lib->location);
 		g_free (plugin_lib->location);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]