From 535c342a2f28e0a1e90010b2f0ff4018eeeb200a Mon Sep 17 00:00:00 2001 From: manuel Date: Wed, 11 May 2011 01:36:49 +0200 Subject: fix windows build --- pacman-c++/client/client.cpp | 4 ++-- pacman-c++/common/common.pro | 1 + pacman-c++/common/constants.cpp | 3 +++ pacman-c++/server/server.cpp | 4 ++-- 4 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 pacman-c++/common/constants.cpp (limited to 'pacman-c++') diff --git a/pacman-c++/client/client.cpp b/pacman-c++/client/client.cpp index da505d1..a00249b 100644 --- a/pacman-c++/client/client.cpp +++ b/pacman-c++/client/client.cpp @@ -249,10 +249,10 @@ void Client::onAcceptConnectDialog() m_mainWidget->doConnect(address, port); } -bool Constants::server = false; - int main(int argc, char **argv) { + Constants::server = false; + /* Verify that the version of the library that we linked against is * compatible with the version of the headers we compiled against. */ diff --git a/pacman-c++/common/common.pro b/pacman-c++/common/common.pro index e7e415e..1114e17 100644 --- a/pacman-c++/common/common.pro +++ b/pacman-c++/common/common.pro @@ -9,6 +9,7 @@ SOURCES += pixmapitem.cpp \ actor.cpp \ block.cpp \ bonuspoint.cpp \ + constants.cpp \ point.cpp \ audio.cpp \ sceneholder.cpp \ diff --git a/pacman-c++/common/constants.cpp b/pacman-c++/common/constants.cpp new file mode 100644 index 0000000..6bf9eb5 --- /dev/null +++ b/pacman-c++/common/constants.cpp @@ -0,0 +1,3 @@ +#include "constants.h" + +bool Constants::server = false; diff --git a/pacman-c++/server/server.cpp b/pacman-c++/server/server.cpp index f9502ba..877c4a6 100644 --- a/pacman-c++/server/server.cpp +++ b/pacman-c++/server/server.cpp @@ -940,10 +940,10 @@ bool operator<(const QPoint& lhs, const QPoint& rhs) return false; } -bool Constants::server = true; - int main(int argc, char **argv) { + Constants::server = true; + /* Verify that the version of the library that we linked against is * compatible with the version of the headers we compiled against. */ -- cgit v1.2.3