summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pacman/util.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pacman/util.h b/src/pacman/util.h
index e2297f81..9920e74a 100644
--- a/src/pacman/util.h
+++ b/src/pacman/util.h
@@ -34,8 +34,8 @@
#define _(str) gettext(str)
#define _n(str1, str2, ct) ngettext(str1, str2, ct)
#else
-#define _(str) str
-#define _n(str1, str2, ct) (ct == 1 ? str1 : str2)
+#define _(str) (char *)str
+#define _n(str1, str2, ct) (char *)(ct == 1 ? str1 : str2)
#endif
typedef struct _pm_target_t {