* src/system.h: Use intl/libgettext.h.

* src/Makefile.am (INCLUDES): Add -I $(top_srcdir).
This commit is contained in:
Akim Demaille
2001-11-27 19:22:10 +00:00
parent 000f1a3cb2
commit e0327bc8b4
3 changed files with 16 additions and 16 deletions

View File

@@ -1,3 +1,8 @@
2001-11-27 Akim Demaille <akim@epita.fr>
* src/system.h: Use intl/libgettext.h.
* src/Makefile.am (INCLUDES): Add -I $(top_srcdir).
2001-11-27 Akim Demaille <akim@epita.fr>
* tests/torture.at (Exploding the Stack Size with Malloc):

View File

@@ -5,8 +5,14 @@ DEFS = @DEFS@ \
-DBISON_HAIRY=\"$(pkgdatadir)/bison.hairy\" \
-DLOCALEDIR=\"$(datadir)/locale\"
INCLUDES = -I../intl -I$(top_srcdir)/lib -I..
LDADD = @INTLLIBS@ ../lib/libbison.a
# libintl.h in is build/intl, intl/libgettext.h in src/,
# config.h in build/.
INCLUDES = -I$(top_builddir)/intl \
-I$(top_builddir) \
-I$(top_srcdir)/lib \
-I$(top_srcdir)
LDADD = $(INTLLIBS) ../lib/libbison.a
bin_PROGRAMS = bison

View File

@@ -149,20 +149,9 @@ size_t strnlen PARAMS ((const char *s, size_t maxlen));
# define setlocale(Category, Locale)
#endif
#ifdef ENABLE_NLS
# include <libintl.h>
# define _(Text) gettext (Text)
#else
# undef bindtextdomain
# define bindtextdomain(Domain, Directory)
# undef textdomain
# define textdomain(Domain)
# undef ngettext
# define ngettext(Singular, Plural, Number) \
((Number == 1) ? Singular : Plural)
# define _(Text) Text
#endif
#define N_(Text) Text
#include "intl/libgettext.h"
#define _(Msgid) gettext (Msgid)
#define N_(Msgid) (Msgid)
/*-------------------------------.