summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorPhilipp Sehmisch <crush@themanaworld.org>2009-03-29 18:31:29 +0200
committerPhilipp Sehmisch <crush@themanaworld.org>2009-03-29 18:33:19 +0200
commit63b41440a0555c6b39141eab94ef4627f712b476 (patch)
tree471607655baec437ba4d81fb1adc9ce66a5625af /src/main.cpp
parent795cec6e276e7f5df8a25bd8306e6fd87c826502 (diff)
downloadmana-63b41440a0555c6b39141eab94ef4627f712b476.tar.gz
mana-63b41440a0555c6b39141eab94ef4627f712b476.tar.bz2
mana-63b41440a0555c6b39141eab94ef4627f712b476.tar.xz
mana-63b41440a0555c6b39141eab94ef4627f712b476.zip
Fixed compilation on Windows
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 8fe1de86..8f04122c 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -985,6 +985,9 @@ static void reconnectAccount(const std::string &passToken)
#endif
+
+extern "C" char const *_nl_locale_name_default(void);
+
static void initInternationalization()
{
#if ENABLE_NLS
@@ -1017,8 +1020,6 @@ static void initXML()
xmlSetGenericErrorFunc(NULL, xmlNullLogger);
}
-extern "C" char const *_nl_locale_name_default(void);
-
/** Main */
int main(int argc, char *argv[])
{
@@ -1207,7 +1208,7 @@ int main(int argc, char *argv[])
{
state = STATE_ERROR;
- if (!network->getError().empty())
+ if (!network->getError().empty())
errorMessage = network->getError();
else
errorMessage = _("Got disconnected from server!");