bug-indent
[Top][All Lists]
Advanced

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

Re: [Bug-indent] problems with the _() macro.


From: david ingamells
Subject: Re: [Bug-indent] problems with the _() macro.
Date: Tue, 22 Jan 2002 21:14:02 +0100

Charles
I've found why non-gettext systems are having problems with the _() macro:

1) in the file include.h replace the following 2 lines

#include <libgettext.h>
#define _(X) gettext(X_)


with the following:

#include <config.h>

#include <libgettext.h>
#ifdef ENABLE_NLS
#define _(X) gettext(X)
#else
#define _(X) X
#endif

2) in wildexp.c add

#include "indent.h"

Regards,

David.

On Tuesday 22 January 2002 2:27 pm, Charles Lecklider wrote:
> david ingamells wrote:
>  > Charles, Thanks for the improvements. The libgettext.h include has
>  > been changed here to
>  >
>  > #include <libgettext.h>
>  >
>  > because of problems with building on Unix platforms. Can you try
>  > this please? You may need to tell the compiler to use other
>  > directories when looking for include files. With GNU and most other
>  > compilers that is with something like the "-I ..\intl" option.
>
> I unpacked the source again to check the updates, and I found one other
> change I made but forgot to list. In wildexp.c, line 86, the _ macro
> isn't defined. I simply removed it, but there may be a better solution.
>
> The include line is no problem - I've updated the makefile to suit.
>
> -C

-- 
David Ingamells
address@hidden
+31 (013) 5093388     (home)
+31 065010947 (mobile)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]