From 0d98c8da13afc3e8345f6c62f7d848bdefe4dc71 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Sat, 4 Aug 2012 13:37:48 -0700 Subject: [PATCH] DRY: get NLS definitions in session.h from util.h --- session.h | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/session.h b/session.h index df74fd34e..ec7caa1a0 100644 --- a/session.h +++ b/session.h @@ -28,19 +28,7 @@ extern "C" { } #include "privilege.h" - -#if ENABLE_NLS -#define _(string) gettext(string) -#define _N(string, string_plural, count) \ - ngettext((string), (string_plural), (count)) -#else -#define _(string) (string) -#define _N(string, string_plural, count) \ - ( (count) == 1 ? (string) : (string_plural) ) -#endif -#define _F(format, ...) autosprintf(_(format), __VA_ARGS__) -#define _NF(format, format_plural, count, ...) \ - autosprintf(_N((format), (format_plural), (count)), __VA_ARGS__) +#include "util.h" // forward decls for all referenced systemtap types class hash; -- 2.43.5