X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Ftiming%2Fsg_time.hxx;h=e8155c1d1442c6470df2fd1319a44a1efba242a5;hb=5bab565cfe4c30d6cf08ecaba50af74d5e4f0c98;hp=e7e823029b7758a6f68d3a3a277a132839aa63f8;hpb=76a5950f19e55e8c8041cc381cf700ea2a7d2fd2;p=simgear.git diff --git a/simgear/timing/sg_time.hxx b/simgear/timing/sg_time.hxx index e7e82302..e8155c1d 100644 --- a/simgear/timing/sg_time.hxx +++ b/simgear/timing/sg_time.hxx @@ -78,7 +78,7 @@ private: time_t cur_time; // Break down of equivalent GMT time -#ifdef _MSC_VER +#if defined(_MSC_VER) || defined(__MINGW32__) struct tm m_gmt; // copy of system gmtime(&time_t) structure #else struct tm *gmt; @@ -166,7 +166,7 @@ public: inline char* get_zonename() const { return zonename; } /** @return GMT in a "brokent down" tm structure */ -#ifdef _MSC_VER +#if defined(_MSC_VER) || defined(__MINGW32__) inline struct tm* getGmt()const { return (struct tm *)&m_gmt; }; #else inline struct tm* getGmt()const { return gmt; };