diff options
author | Nick Clifton <nickc@redhat.com> | 2005-09-30 11:42:05 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2005-09-30 11:42:05 +0000 |
commit | a70c240376fbfde088944325cc58a0e9edba6cc5 (patch) | |
tree | 7a7fc819d79f97c05d8089d9f8a4032877677c4c /gprof/gprof.c | |
parent | 7fe2b9a6a674d57789207d7f14fb2f0573bcc8f5 (diff) | |
download | fsf-binutils-gdb-a70c240376fbfde088944325cc58a0e9edba6cc5.zip fsf-binutils-gdb-a70c240376fbfde088944325cc58a0e9edba6cc5.tar.gz fsf-binutils-gdb-a70c240376fbfde088944325cc58a0e9edba6cc5.tar.bz2 |
asintl.h/bucomm.h/ld.h: Prevent the inclusion of <libintl.h> from the Solaris
version of <locale.h> when ENABLE_NLS is not defined.
gprof.c (main):Only invoke bindtextdomain() and textdomain() if ENABLE_NLS is
defined.
Diffstat (limited to 'gprof/gprof.c')
-rw-r--r-- | gprof/gprof.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |