diff options
author | Dan McGee <dan@archlinux.org> | 2007-10-22 21:33:47 -0700 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-10-22 23:37:38 -0500 |
commit | 0c4f7d821c1cd4ce559476595e2108f75b3dde7c (patch) | |
tree | d4568383740a4a2e04d1a939af94e13335c747f9 /lib/libalpm/util.h | |
parent | 46eaa5c54200bfda402412e2f5b7df0eddc0230a (diff) | |
download | pacman-0c4f7d821c1cd4ce559476595e2108f75b3dde7c.tar.xz |
Fix broken or missing includes
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/util.h')
-rw-r--r-- | lib/libalpm/util.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/libalpm/util.h b/lib/libalpm/util.h index 5b6fac99..3154f470 100644 --- a/lib/libalpm/util.h +++ b/lib/libalpm/util.h @@ -27,20 +27,20 @@ #include <stdio.h> #include <stdarg.h> -#include <libintl.h> /* here so it doesn't need to be included elsewhere */ #include <time.h> -#define FREE(p) do { if (p) { free(p); p = NULL; } } while(0) - -#define ASSERT(cond, action) do { if(!(cond)) { action; } } while(0) - -/* define _() as shortcut for gettext() */ #ifdef ENABLE_NLS +#include <libintl.h> /* here so it doesn't need to be included elsewhere */ +/* define _() as shortcut for gettext() */ #define _(str) dgettext ("libalpm", str) #else #define _(s) s #endif +#define FREE(p) do { if (p) { free(p); p = NULL; } } while(0) + +#define ASSERT(cond, action) do { if(!(cond)) { action; } } while(0) + int _alpm_makepath(const char *path); int _alpm_copyfile(const char *src, const char *dest); char *_alpm_strtrim(char *str); |