diff --git a/src/ide/vc9/supertuxkart.vcproj b/src/ide/vc9/supertuxkart.vcproj index 8906b5e97..9193954ad 100644 --- a/src/ide/vc9/supertuxkart.vcproj +++ b/src/ide/vc9/supertuxkart.vcproj @@ -233,7 +233,7 @@ /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ( n==1 ? 0 : n= PluralForms PluralForms::from_string(const std::string& str) { - static std::map plural_forms; + static std::map plural_forms; if (plural_forms.empty()) { @@ -73,7 +73,7 @@ PluralForms::from_string(const std::string& str) if (!isspace(str[i])) space_less_str += str[i]; - std::map::const_iterator it= plural_forms.find(space_less_str); + std::map::const_iterator it= plural_forms.find(space_less_str); if (it != plural_forms.end()) { return it->second; diff --git a/src/tinygettext/plural_forms.hpp b/src/tinygettext/plural_forms.hpp index 0b064494b..c2f92f14d 100644 --- a/src/tinygettext/plural_forms.hpp +++ b/src/tinygettext/plural_forms.hpp @@ -50,7 +50,7 @@ public: bool operator!=(const PluralForms& other) { return !(*this == other); } operator bool() const { - return plural; + return plural!=NULL; } }; diff --git a/src/tinygettext/po_parser.cpp b/src/tinygettext/po_parser.cpp index e6d3fd627..aff916e87 100644 --- a/src/tinygettext/po_parser.cpp +++ b/src/tinygettext/po_parser.cpp @@ -336,9 +336,9 @@ POParser::parse() // skip UTF-8 intro that some text editors produce // see http://en.wikipedia.org/wiki/Byte-order_mark if (current_line.size() >= 3 && - current_line[0] == static_cast(0xef) && - current_line[1] == static_cast(0xbb) && - current_line[2] == static_cast(0xbf)) + current_line[0] == static_cast(0xef) && + current_line[1] == static_cast(0xbb) && + current_line[2] == static_cast(0xbf)) { current_line = current_line.substr(3); } diff --git a/src/tinygettext/po_parser.hpp b/src/tinygettext/po_parser.hpp index 8fa749109..c3c451314 100644 --- a/src/tinygettext/po_parser.hpp +++ b/src/tinygettext/po_parser.hpp @@ -54,7 +54,11 @@ private: void get_string_line(std::ostringstream& str,unsigned int skip); bool is_empty_line(); bool prefix(const char* ); +#ifdef WIN32 + void error(const std::string& msg); +#else void error(const std::string& msg) __attribute__((__noreturn__)); +#endif void warning(const std::string& msg); public: diff --git a/src/tinygettext/stk_file_system.cpp b/src/tinygettext/stk_file_system.cpp index 71f948bbb..e1cc35959 100644 --- a/src/tinygettext/stk_file_system.cpp +++ b/src/tinygettext/stk_file_system.cpp @@ -19,9 +19,7 @@ #include #include -#include #include -#include #include #include "io/file_manager.hpp"