[OTR-dev] osx "__" undefined symbol
cyphunk at gmail.com
cyphunk at gmail.com
Wed Jan 23 07:21:38 EST 2013
Ian the patch worked, thanks! shame we didnt get a chance to meet at
ECRYPT last year.
For anyone interested, this worked with
OSX 10.7.5
Pidgin 2.10.6
libotr 4.0.0
pidgin-otr 4.0.0
On 18/01/2013 12:54, Ian Goldberg wrote:
> diff --git a/ChangeLog b/ChangeLog
> index d32958e..74fad13 100644
> --- a/ChangeLog
> +++ b/ChangeLog
> @@ -1,3 +1,11 @@
> +2012-09-06
> +
> + * gtk-dialog.c:
> + * gtk-ui.c:
> + * ui.c:
> + * otr-plugin.c: Compile correctly even if i18n (libintl/gettext)
> + is not available.
> +
> 2012-09-04
>
> * README: Release 4.0.0
> diff --git a/gtk-dialog.c b/gtk-dialog.c
> index 725c78c..f9af2da 100644
> --- a/gtk-dialog.c
> +++ b/gtk-dialog.c
> @@ -48,6 +48,9 @@
> #ifdef ENABLE_NLS
> /* internationalisation headers */
> #include <glib/gi18n-lib.h>
> +#else
> +#define _(x) (x)
> +#define N_(x) (x)
> #endif
>
> /* libotr headers */
> diff --git a/gtk-ui.c b/gtk-ui.c
> index 80261e7..00c337f 100644
> --- a/gtk-ui.c
> +++ b/gtk-ui.c
> @@ -42,6 +42,9 @@
> #ifdef ENABLE_NLS
> /* internationalisation header */
> #include <glib/gi18n-lib.h>
> +#else
> +#define _(x) (x)
> +#define N_(x) (x)
> #endif
>
> /* purple-otr headers */
> diff --git a/otr-plugin.c b/otr-plugin.c
> index bec8dd0..d455ca8 100644
> --- a/otr-plugin.c
> +++ b/otr-plugin.c
> @@ -56,6 +56,11 @@
> /* internationalisation header */
> #include <glib/gi18n-lib.h>
>
> +#else /* ENABLE_NLS */
> +
> +#define _(x) (x)
> +#define N_(x) (x)
> +
> #endif /* ENABLE_NLS */
>
> /* libotr headers */
> diff --git a/ui.c b/ui.c
> index d47ab1e..2885e99 100644
> --- a/ui.c
> +++ b/ui.c
> @@ -34,6 +34,9 @@
> #ifdef ENABLE_NLS
> /* internationalisation header */
> #include <glib/gi18n-lib.h>
> +#else
> +#define _(x) (x)
> +#define N_(x) (x)
> #endif
>
> /* libotr headers */
More information about the OTR-dev
mailing list