summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-06-27 05:11:15 +0300
committerAndrei Karas <akaras@inbox.ru>2011-06-27 05:11:15 +0300
commitf902b4a3c13d1502bec17754f15fce03a21c5aaa (patch)
tree84d2e91b4983a937492a77abcd0863f42e453f39 /src/utils
parent3d6d504c4bad50f64d4d54213b13439e938aa517 (diff)
downloadmanaplus-f902b4a3c13d1502bec17754f15fce03a21c5aaa.tar.gz
manaplus-f902b4a3c13d1502bec17754f15fce03a21c5aaa.tar.bz2
manaplus-f902b4a3c13d1502bec17754f15fce03a21c5aaa.tar.xz
manaplus-f902b4a3c13d1502bec17754f15fce03a21c5aaa.zip
Fix errors in MacOS compilation.
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/gettext.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/utils/gettext.h b/src/utils/gettext.h
index fa9a62a6d..0a15aa724 100644
--- a/src/utils/gettext.h
+++ b/src/utils/gettext.h
@@ -40,6 +40,15 @@
#define _(s) (const_cast <char*>(s))
#define N_(s) (const_cast <char*>(s))
+char* ngettext(char* msgid, char* msgid_plural, unsigned long int n);
+
+char* ngettext(char* msgid, char* msgid_plural, unsigned long int n)
+{
+ if(n > 1)
+ return msgid_plural;
+ return msgid;
+}
+
#endif
#endif // UTILS_GETTEXT_H