From 8a7190f6f110b2e9019e23dd408549e3d4a6b591 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Fri, 19 Oct 2012 02:01:40 +0000 Subject: [PATCH] - fixed windows build --- source/glest_game/game/game_camera.cpp | 1 + source/shared_lib/include/feathery_ftp/ftpTypes.h | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/source/glest_game/game/game_camera.cpp b/source/glest_game/game/game_camera.cpp index 8a5cb353..66d24b26 100644 --- a/source/glest_game/game/game_camera.cpp +++ b/source/glest_game/game/game_camera.cpp @@ -17,6 +17,7 @@ #include "game_constants.h" #include "xml_parser.h" #include "conversion.h" +#include "platform_common.h" #include "leak_dumper.h" diff --git a/source/shared_lib/include/feathery_ftp/ftpTypes.h b/source/shared_lib/include/feathery_ftp/ftpTypes.h index 4fea7d2c..b9312dab 100644 --- a/source/shared_lib/include/feathery_ftp/ftpTypes.h +++ b/source/shared_lib/include/feathery_ftp/ftpTypes.h @@ -60,6 +60,11 @@ typedef uint16_t port_t; #define TRUE 1 #endif +#if (defined WIN32) && !(defined snprintf) +#define snprintf _snprintf +#endif + + #ifdef __cplusplus extern "C" { #endif