From 75efcbbff6a9e1db543f04693f70780413369a85 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Thu, 26 Apr 2007 19:39:53 -0400 Subject: Clean up gettext on the libalpm side Remove inclusion of libintl.h from all files, because we can do it once in util.c where the _() macro is defined. Signed-off-by: Dan McGee --- lib/libalpm/util.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'lib/libalpm/util.h') diff --git a/lib/libalpm/util.h b/lib/libalpm/util.h index 9f028e8a..c4131795 100644 --- a/lib/libalpm/util.h +++ b/lib/libalpm/util.h @@ -26,13 +26,9 @@ #define _ALPM_UTIL_H #include -#if defined(__OpenBSD__) -#include "/usr/local/include/archive.h" -#include "/usr/local/include/archive_entry.h" -#else +#include /* here so it doesn't need to be included elsewhere */ #include #include -#endif #define FREE(p) do { if (p) { free(p); p = NULL; } } while(0) @@ -45,6 +41,7 @@ #define ARCHIVE_EXTRACT_FLAGS ARCHIVE_EXTRACT_OWNER | ARCHIVE_EXTRACT_PERM | ARCHIVE_EXTRACT_TIME +/* define _() as shortcut for gettext() */ #ifdef ENABLE_NLS #define _(str) dgettext ("libalpm", str) #else -- cgit v1.2.3-24-g4f1b