Revision: 3440 http://geany.svn.sourceforge.net/geany/?rev=3440&view=rev Author: eht16 Date: 2009-01-03 16:22:09 +0000 (Sat, 03 Jan 2009)
Log Message: ----------- Prevent compile errors in plugins when GETTEXT_PACKAGE is not defined.
Modified Paths: -------------- trunk/ChangeLog trunk/src/support.h
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2009-01-03 13:03:42 UTC (rev 3439) +++ trunk/ChangeLog 2009-01-03 16:22:09 UTC (rev 3440) @@ -1,3 +1,10 @@ +2009-01-03 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de> + + * src/support.h: + Prevent compile errors in plugins when GETTEXT_PACKAGE is not + defined. + + 2009-01-03 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
* src/interface.c, src/keybindings.c, src/geanyobject.c,
Modified: trunk/src/support.h =================================================================== --- trunk/src/support.h 2009-01-03 13:03:42 UTC (rev 3439) +++ trunk/src/support.h 2009-01-03 16:22:09 UTC (rev 3440) @@ -23,4 +23,14 @@
#include "geany.h"
-#include <glib/gi18n-lib.h> +#ifdef GETTEXT_PACKAGE +# include <glib/gi18n-lib.h> +#else +# define textdomain(String) (String) +# define bind_textdomain_codeset(String) (String) +# define bindtextdomain(Domain,Charset) (Domain) +# define ngettext(String) (String) +# define _(String) String +# define Q_(String) g_strip_context((String), (String)) +# define N_(String) String +#endif
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.