diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-06-27 05:11:15 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-06-27 05:11:15 +0300 |
commit | f902b4a3c13d1502bec17754f15fce03a21c5aaa (patch) | |
tree | 84d2e91b4983a937492a77abcd0863f42e453f39 /src/utils/gettext.h | |
parent | 3d6d504c4bad50f64d4d54213b13439e938aa517 (diff) | |
download | ManaVerse-f902b4a3c13d1502bec17754f15fce03a21c5aaa.tar.gz ManaVerse-f902b4a3c13d1502bec17754f15fce03a21c5aaa.tar.bz2 ManaVerse-f902b4a3c13d1502bec17754f15fce03a21c5aaa.tar.xz ManaVerse-f902b4a3c13d1502bec17754f15fce03a21c5aaa.zip |
Fix errors in MacOS compilation.
Diffstat (limited to 'src/utils/gettext.h')
-rw-r--r-- | src/utils/gettext.h | 9 |
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 |