summaryrefslogtreecommitdiff
path: root/gettext.h
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2000-06-13 05:22:52 +0000
committerPaul Smith <psmith@gnu.org>2000-06-13 05:22:52 +0000
commit4972b017b63f3ce324bfa65a1b46a2a173baf463 (patch)
treed4bac994ae10ea2290d195dfe12978a8bfcda2ea /gettext.h
parent4a5550c8225d762f684d4047e20cc45274b6a785 (diff)
downloadgunmake-4972b017b63f3ce324bfa65a1b46a2a173baf463.tar.gz
* Some timestamp fixes from Paul Eggert.
* Fix compilation on Linux; use libintl.h and not gettext.h when using the system gettext.
Diffstat (limited to 'gettext.h')
-rw-r--r--gettext.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/gettext.h b/gettext.h
index 205c4e8..6a33cc1 100644
--- a/gettext.h
+++ b/gettext.h
@@ -17,16 +17,14 @@
along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
-/* Because on some systems (e.g. Solaris) we sometimes have to include
- the systems libintl.h as well as this file we have more complex
- include protection above. But the systems header might perhaps also
- define _LIBINTL_H and therefore we have to protect the definition here. */
-
-#if !defined _LIBINTL_H || !defined _LIBGETTEXT_H
-#ifndef _LIBINTL_H
-# define _LIBINTL_H 1
-#endif
-#define _LIBGETTEXT_H 1
+/* Include libintl.h, if it was found: we don't even look for it unless we
+ want to use the system's gettext(). If not, the rest of the file contains
+ the headers necessary for our own gettext.c. */
+
+#ifdef HAVE_LIBINTL_H
+# include <libintl.h>
+
+#else
/* We define an additional symbol to signal that we use the GNU
implementation of gettext. */
@@ -80,10 +78,6 @@ extern const struct _msg_ent _msg_tbl[];
extern int _msg_tbl_length;
#endif
-/* For automatical extraction of messages sometimes no real
- translation is needed. Instead the string itself is the result. */
-#define gettext_noop(Str) (Str)
-
/* Look up MSGID in the current default message catalog for the current
LC_MESSAGES locale. If not found, returns MSGID itself (the default
text). */
@@ -172,6 +166,12 @@ extern int _nl_msg_cat_cntr;
}
#endif
+#endif /* !HAVE_LIBINTL_H */
+
+#ifndef gettext_noop
+/* For automatical extraction of messages sometimes no real
+ translation is needed. Instead the string itself is the result. */
+# define gettext_noop(Str) (Str)
#endif
/* End of libgettext.h */