]> git.mxchange.org Git - simgear.git/blobdiff - simgear/timing/sg_time.hxx
Updates to build system to better support automake-1.5
[simgear.git] / simgear / timing / sg_time.hxx
index e7e823029b7758a6f68d3a3a277a132839aa63f8..e8155c1d1442c6470df2fd1319a44a1efba242a5 100644 (file)
@@ -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; };