Revert rev 1.9:

* we now disable gettext by not defining ENABLE_NLS,
 * we now link in the xmalloc/xstrdup/xexit replacements explicitly.
Reduces differences to upstream.
This commit is contained in:
lukem 2008-09-09 06:32:59 +00:00
parent d455051090
commit 915ac4056f

View File

@ -1,4 +1,4 @@
/* $NetBSD: system.h,v 1.9 2008/09/03 09:55:23 dogcow Exp $ */
/* $NetBSD: system.h,v 1.10 2008/09/09 06:32:59 lukem Exp $ */
/* system.h: system-dependent declarations; include this first.
Id: system.h,v 1.12 2004/04/26 13:56:57 karl Exp
@ -56,11 +56,7 @@ extern char *substring (const char *, const char *);
#include "gettext.h"
#undef const
#ifndef HOSTTOOL
#define _(String) gettext (String)
#else
#define _(String) (String)
#endif
#define N_(String) (String)
#ifdef STDC_HEADERS
@ -273,12 +269,10 @@ extern int strcoll ();
/* Some systems don't declare this function in pwd.h. */
struct passwd *getpwnam (const char *name);
#ifndef HOSTTOOL
/* Our library routines not included in any system library. */
extern void *xmalloc (size_t), *xrealloc (void *, size_t);
extern char *xstrdup (const char *);
extern void xexit (int);
#endif
/* For convenience. */
#define STREQ(s1,s2) (strcmp (s1, s2) == 0)