This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Clean gcc warnings in opcodes
- To: binutils at sourceware dot cygnus dot com
- Subject: Clean gcc warnings in opcodes
- From: Nick Clifton <nickc at cygnus dot com>
- Date: Tue, 30 May 2000 11:35:04 -0700
Hi Guys,
Folowwing the patches made by Alan Modra to other directories, i
have checked in the patch below to fix a few compile time warnings
in the opcodes directory.
Cheers
Nick
2000-05-30 Nick Clifton <nickc@cygnus.com>
* opintl.h (gettext, dgettext, dcgettext, textdomain,
bindtextdomain): Replace defines with those from intl/libgettext.h
to quieten gcc warnings.
Index: opintl.h
===================================================================
RCS file: /cvs/src//src/opcodes/opintl.h,v
retrieving revision 1.1.1.1
diff -p -r1.1.1.1 opintl.h
*** opintl.h 1999/05/03 07:29:00 1.1.1.1
--- opintl.h 2000/05/30 18:30:15
***************
*** 12,30 ****
#ifdef ENABLE_NLS
# include <libintl.h>
! # define _(String) dgettext (PACKAGE, String)
# ifdef gettext_noop
# define N_(String) gettext_noop (String)
# else
# define N_(String) (String)
# endif
#else
! /* Stubs that do something close enough. */
! # define textdomain(String) (String)
! # define gettext(String) (String)
! # define dgettext(Domain,Message) (Message)
! # define dcgettext(Domain,Message,Type) (Message)
! # define bindtextdomain(Domain,Directory) (Domain)
# define _(String) (String)
# define N_(String) (String)
#endif
--- 12,29 ----
#ifdef ENABLE_NLS
# include <libintl.h>
! # define _(String) gettext (String)
# ifdef gettext_noop
# define N_(String) gettext_noop (String)
# else
# define N_(String) (String)
# endif
#else
! # define gettext(Msgid) (Msgid)
! # define dgettext(Domainname, Msgid) (Msgid)
! # define dcgettext(Domainname, Msgid, Category) (Msgid)
! # define textdomain(Domainname) while (0) /* nothing */
! # define bindtextdomain(Domainname, Dirname) while (0) /* nothing */
# define _(String) (String)
# define N_(String) (String)
#endif