Fix Mingw build.
This reverts the two previous commits since they broke the
Mingw build. The problem is that the Mingw <time.h> header
includes an inline declaration of gmtime_r() that is outside
an extern "C" {} block when the header is included from C++.
This creates a compiler error when the header is included
directly from a C++ source multiple times (but where one of
the includes is within an extern "C" block, while the other
one is not).
Change-Id: I248ec6421324faba7b8d7b4d9627bc97e9d729c5
2 files changed