From a422e43beb2d366690173e79e8932c63354a79d3 Mon Sep 17 00:00:00 2001 From: jacob1 Date: Wed, 25 Feb 2015 18:56:50 -0500 Subject: [PATCH] visual studio error fix + warning fix --- src/client/HTTP.cpp | 5 +++++ src/simulation/Simulation.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/client/HTTP.cpp b/src/client/HTTP.cpp index 315cf51de..704958fcc 100644 --- a/src/client/HTTP.cpp +++ b/src/client/HTTP.cpp @@ -72,6 +72,11 @@ #define PCLOSE close #endif +#ifdef _MSC_VER +#include //for SSIZE_T +typedef SSIZE_T ssize_t; +#endif + char * userAgent; static int http_up = 0; static long http_timeout = 15; diff --git a/src/simulation/Simulation.h b/src/simulation/Simulation.h index 54742eddf..43e34f9a0 100644 --- a/src/simulation/Simulation.h +++ b/src/simulation/Simulation.h @@ -20,7 +20,7 @@ class Snapshot; class SimTool; class Brush; -struct SimulationSample; +class SimulationSample; struct matrix2d; struct vector2d;