summaryrefslogtreecommitdiffstats
path: root/src/i18n.h
blob: a0b44393cf06b6c4eeefa99d71c24fd2043678e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* i18n.h - common i18n declarations for psmisc programs.  */

#ifndef I18N_H
#define I18N_H

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#ifdef ENABLE_NLS
#include <locale.h>
#include <libintl.h>
#define _(String) gettext (String)
#else
#define _(String) (String)
#endif

#endif

#ifndef HAVE_RPMATCH
#define rpmatch(line) \
	( (line == NULL)? -1 : \
	  (*line == 'y' || *line == 'Y')? 1 : \
	  (*line == 'n' || *line == 'N')? 0 : \
	  -1 )
#endif