diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 8 | ||||
-rw-r--r-- | src/account-server/main-account.cpp | 4 | ||||
-rw-r--r-- | src/common/winver.h | 6 | ||||
-rw-r--r-- | src/common/winver.h.in | 6 | ||||
-rw-r--r-- | src/game-server/main-game.cpp | 1 | ||||
-rw-r--r-- | src/net/messagein.cpp | 1 | ||||
-rw-r--r-- | src/net/messageout.cpp | 1 |
7 files changed, 23 insertions, 4 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 1d06c5d8..c8752fbc 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -37,7 +37,7 @@ IF (MINGW) "<CMAKE_RC_COMPILER> <FLAGS> <DEFINES> -O coff -o <OBJECT> <SOURCE>") ENDIF() -SET(FLAGS "-DPACKAGE_VERSION=\\\"${VERSION}\\\"") +SET(FLAGS "${FLAGS} -DPACKAGE_VERSION=\\\"${VERSION}\\\"") SET(FLAGS "${FLAGS} -DPKG_DATADIR=\\\"${PKG_DATADIR}/\\\"") SET(FLAGS "${FLAGS} -DLOCALEDIR=\\\"${LOCALEDIR}/\\\"") @@ -94,8 +94,8 @@ INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_SOURCE_DIR} ${PHYSFS_INCLUDE_DIR} ${LIBXML2_INCLUDE_DIR} - ${SigC++_INCLUDE_DIR} - ${SigC++Config_INCLUDE_DIR} + ${SIGC++_INCLUDE_DIR} + ${SIGC++Config_INCLUDE_DIR} ) # Fix some stuff that gets not hidden by mainline modules @@ -319,7 +319,7 @@ FOREACH(program ${PROGRAMS}) ${PHYSFS_LIBRARY} ${LIBXML2_LIBRARIES} ${ZLIB_LIBRARIES} - ${SigC++_LIBRARIES} + ${SIGC++_LIBRARIES} ${OPTIONAL_LIBRARIES} ${EXTRA_LIBRARIES}) INSTALL(TARGETS ${program} RUNTIME DESTINATION ${PKG_BINDIR}) diff --git a/src/account-server/main-account.cpp b/src/account-server/main-account.cpp index ab4df75e..db69fe69 100644 --- a/src/account-server/main-account.cpp +++ b/src/account-server/main-account.cpp @@ -23,6 +23,10 @@ #include "../config.h" #endif +#ifdef __MINGW32__ +#include "common/winver.h" +#endif + #include "account-server/accounthandler.h" #include "account-server/serverhandler.h" #include "account-server/storage.h" diff --git a/src/common/winver.h b/src/common/winver.h new file mode 100644 index 00000000..03a0c215 --- /dev/null +++ b/src/common/winver.h @@ -0,0 +1,6 @@ +/* VERSION DEFINITIONS */ +#define VER_MAJOR 0 +#define VER_MINOR 1 +#define VER_RELEASE 0 +#define VER_BUILD 0 +#define PACKAGE_VERSION "0.1.0.0" diff --git a/src/common/winver.h.in b/src/common/winver.h.in new file mode 100644 index 00000000..fb0aac2c --- /dev/null +++ b/src/common/winver.h.in @@ -0,0 +1,6 @@ +/* VERSION DEFINITIONS */ +#define VER_MAJOR ${VER_MAJOR} +#define VER_MINOR ${VER_MINOR} +#define VER_RELEASE ${VER_RELEASE} +#define VER_BUILD ${VER_BUILD} +#define PACKAGE_VERSION "${VERSION}" diff --git a/src/game-server/main-game.cpp b/src/game-server/main-game.cpp index 5814f0bc..f76189f9 100644 --- a/src/game-server/main-game.cpp +++ b/src/game-server/main-game.cpp @@ -54,6 +54,7 @@ #ifdef __MINGW32__ #include <windows.h> +#include "common/winver.h" #define usleep(usec) (Sleep ((usec) / 1000), 0) #endif diff --git a/src/net/messagein.cpp b/src/net/messagein.cpp index b797f0a0..ce1be488 100644 --- a/src/net/messagein.cpp +++ b/src/net/messagein.cpp @@ -27,6 +27,7 @@ #ifndef USE_NATIVE_DOUBLE #include <sstream> #endif +#include <stdint.h> #include "net/messagein.h" #include "utils/logger.h" diff --git a/src/net/messageout.cpp b/src/net/messageout.cpp index 00bb623b..af305a6e 100644 --- a/src/net/messageout.cpp +++ b/src/net/messageout.cpp @@ -28,6 +28,7 @@ #include <limits> #include <sstream> #endif +#include <stdint.h> #include <string> #include <enet/enet.h> |