From 938e0bfac75302b5056223ffee919d650fdb56be Mon Sep 17 00:00:00 2001 From: Peter Mikkelsen Date: Thu, 13 Nov 2025 21:05:27 +0100 Subject: Add _ macro to bin/main.c --- src/bin/main.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'src/bin/main.c') diff --git a/src/bin/main.c b/src/bin/main.c index 19281ea..5d5ea97 100644 --- a/src/bin/main.c +++ b/src/bin/main.c @@ -1,12 +1,27 @@ +#include +#include #include +#if ENABLE_NLS +#include +#define _(S) dgettext(PACKAGE, S) +#else +#define _(S) S +#endif + int main(int argc, char *argv[]) { APLWCFunctions fns; + APLWC *aplwc; + + aplwc_boot(); + + if(argc != 1) + puts(_("No command line arguments expected")); aplwc_init_fns(&fns); - APLWC *aplwc = aplwc_init(&fns, NULL); + aplwc = aplwc_init(&fns, NULL); aplwc_exit(aplwc); return 0; } -- cgit v1.2.3