From cb1342e449ea1a1307121ec99852e6b30b81d682 Mon Sep 17 00:00:00 2001 From: hikerstk Date: Mon, 24 Jan 2011 00:18:26 +0000 Subject: [PATCH] Fixed compilation errors, but code still crashes on VS ... work in progres!!!! git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7511 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/utils/translation.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/utils/translation.hpp b/src/utils/translation.hpp index ec6426d57..988e87828 100644 --- a/src/utils/translation.hpp +++ b/src/utils/translation.hpp @@ -32,8 +32,13 @@ # include # endif +#ifdef WIN32 +# define _(String, ...) (translations->fribidize(StringUtils::insertValues(translations->w_gettext(String), ##__VA_ARGS__))) +# define _LTR(String, ...) (StringUtils::insertValues(translations->w_gettext(String), ##__VA_ARGS__)) +#else # define _(String, args...) (translations->fribidize(StringUtils::insertValues(translations->w_gettext(String), ##args))) # define _LTR(String, args...) (StringUtils::insertValues(translations->w_gettext(String), ##args)) +#endif # define gettext_noop(String) (String) # define N_(String) (gettext_noop (String)) // libintl defines its own fprintf, which doesn't work properly