From 31861aea5508509f3c98d6fb26aefc0d79d29e10 Mon Sep 17 00:00:00 2001 From: Nick Bowler Date: Tue, 21 Sep 2021 20:56:19 -0400 Subject: [PATCH] Back out incomplete i18n support in the library. We are a long way from actually having working i18n, so all this is doing right now is adding unneeeded build dependencies. --- src/error.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/error.c b/src/error.c index 8071547..fb74bd5 100644 --- a/src/error.c +++ b/src/error.c @@ -24,11 +24,12 @@ #include #include #include -#include #include "error.h" +#include "misc.h" -#define _(s) dgettext(PACKAGE, s) +// #define _(s) dgettext(PACKAGE, s) +#define _(s) (s) #if !defined(LBX_ERROR_LIMIT) # define LBX_ERROR_LIMIT 256 @@ -40,8 +41,6 @@ static int error_ring[LBX_ERROR_LIMIT]; static const char **user_errors; static int user_error_count, user_error_max = 2; -#define MIN(a, b) ((a) < (b) ? (a) : (b)) - int lbx_error_new(const char *str) { assert(user_error_count >= 0 && user_error_count <= user_error_max); -- 2.43.2