summaryrefslogtreecommitdiff
path: root/poptint.h
diff options
context:
space:
mode:
Diffstat (limited to 'poptint.h')
-rw-r--r--poptint.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/poptint.h b/poptint.h
index 195039a..5d99be5 100644
--- a/poptint.h
+++ b/poptint.h
@@ -43,4 +43,22 @@ struct poptContext_s {
char * otherHelp;
};
+#ifdef HAVE_LIBINTL_H
+#include <libintl.h>
+#endif
+
+#ifdef HAVE_GETTEXT
+#define _(foo) gettext(foo)
+#else
+#define _(foo) (foo)
+#endif
+
+#ifdef HAVE_DGETTEXT
+#define POPT_(foo) dgettext("popt", foo)
+#else
+#define POPT_(foo) (foo)
+#endif
+
+#define N_(foo) (foo)
+
#endif