diff options
author | Dmitry V. Levin <ldv@strace.io> | 2024-08-20 08:00:00 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@strace.io> | 2024-08-20 08:00:00 +0000 |
commit | 1ef2c9a2266f71639cf3c81bd5ee2031051a7cb4 (patch) | |
tree | 1df7bbee22b272f56524bf3e66ce3558198e0741 /libpam/include | |
parent | bfa62b63434204e708065ea593650fd0cfcf47ec (diff) | |
download | pam-1ef2c9a2266f71639cf3c81bd5ee2031051a7cb4.tar.gz pam-1ef2c9a2266f71639cf3c81bd5ee2031051a7cb4.tar.bz2 pam-1ef2c9a2266f71639cf3c81bd5ee2031051a7cb4.zip |
Introduce pam_i18n.h
Introduce a new internal header file that is going to be used for
i18n definitions instead of providing those definitions via config.h.
providing convenient assertion testing functionality.
* libpam/include/pam_i18n.h: New file.
* libpam/Makefile.am (noinst_HEADERS): Add include/pam_i18n.h.
Diffstat (limited to 'libpam/include')
-rw-r--r-- | libpam/include/pam_i18n.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libpam/include/pam_i18n.h b/libpam/include/pam_i18n.h new file mode 100644 index 00000000..85a21219 --- /dev/null +++ b/libpam/include/pam_i18n.h @@ -0,0 +1,17 @@ +#ifndef PAM_I18N_H +#define PAM_I18N_H + +#ifdef ENABLE_NLS + +# include <libintl.h> +# define _(msgid) dgettext(PACKAGE, msgid) +# define N_(msgid) msgid + +#else + +# define _(msgid) (msgid) +# define N_(msgid) msgid + +#endif /* ENABLE_NLS */ + +#endif /* PAM_I18N_H */ |