From a70c240376fbfde088944325cc58a0e9edba6cc5 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Fri, 30 Sep 2005 11:42:05 +0000 Subject: asintl.h/bucomm.h/ld.h: Prevent the inclusion of from the Solaris version of when ENABLE_NLS is not defined. gprof.c (main):Only invoke bindtextdomain() and textdomain() if ENABLE_NLS is defined. --- gprof/ChangeLog | 5 +++++ gprof/gprof.c | 2 ++ 2 files changed, 7 insertions(+) (limited to 'gprof') diff --git a/gprof/ChangeLog b/gprof/ChangeLog index 15722f4..7140813 100644 --- a/gprof/ChangeLog +++ b/gprof/ChangeLog @@ -1,3 +1,8 @@ +2005-09-30 Matthias Kurz + + * gprof.c (main):Only invoke bindtextdomain() and textdomain() if + ENABLE_NLS is defined. + 2005-05-09 Nick Clifton * Update the address and phone number of the FSF organization in diff --git a/gprof/gprof.c b/gprof/gprof.c index 2814309..0430df7 100644 --- a/gprof/gprof.c +++ b/gprof/gprof.c @@ -189,8 +189,10 @@ main (int argc, char **argv) #if defined (HAVE_SETLOCALE) setlocale (LC_CTYPE, ""); #endif +#ifdef ENABLE_NLS bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); +#endif whoami = argv[0]; xmalloc_set_program_name (whoami); -- cgit v1.1