server does not use libintl
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5051 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -27,7 +27,6 @@
|
||||
#endif
|
||||
|
||||
#include <zlib.h>
|
||||
#include <libintl.h>
|
||||
#include <enet/enet.h>
|
||||
|
||||
#ifdef WIN32
|
||||
@@ -44,6 +43,7 @@
|
||||
#endif
|
||||
|
||||
#ifndef STANDALONE
|
||||
#include <libintl.h>
|
||||
#include <SDL.h>
|
||||
#include <SDL_image.h>
|
||||
#include <SDL_ttf.h>
|
||||
|
||||
@@ -742,6 +742,7 @@ inline char *newstring(const char *s) { return newstring(s, strlen(s))
|
||||
inline char *newstringbuf() { return newstring(MAXSTRLEN-1); }
|
||||
inline char *newstringbuf(const char *s) { return newstring(s, MAXSTRLEN-1); }
|
||||
|
||||
#ifndef STANDALONE
|
||||
inline const char *_gettext(const char *msgid)
|
||||
{
|
||||
if(msgid && msgid[0] != '\0')
|
||||
@@ -749,6 +750,7 @@ inline const char *_gettext(const char *msgid)
|
||||
else
|
||||
return "";
|
||||
}
|
||||
#endif
|
||||
|
||||
#define _(s) _gettext(s)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user