File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
absl/time/internal/cctz/src Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 1313// limitations under the License.
1414
1515#if !defined(HAS_STRPTIME)
16- #if !defined(_MSC_VER) && !defined(__MINGW32__) && !defined(__VXWORKS__)
16+ #if defined(_MSC_VER) || defined(__MINGW32__) || defined(__VXWORKS__)
17+ #define HAS_STRPTIME 0
18+ #else
1719#define HAS_STRPTIME 1 // Assume everyone else has strptime().
1820#endif
1921#endif
2022
21- #if defined(HAS_STRPTIME) && HAS_STRPTIME
23+ #if HAS_STRPTIME
2224#if !defined(_XOPEN_SOURCE) && !defined(__FreeBSD__) && !defined(__OpenBSD__)
2325#define _XOPEN_SOURCE 500 // Exposes definitions for SUSv2 (UNIX 98).
2426#endif
4042#include < limits>
4143#include < string>
4244#include < vector>
43- #if !defined( HAS_STRPTIME)
45+ #if !HAS_STRPTIME
4446#include < iomanip>
4547#include < sstream>
4648#endif
@@ -56,7 +58,7 @@ namespace detail {
5658
5759namespace {
5860
59- #if !defined( HAS_STRPTIME)
61+ #if !HAS_STRPTIME
6062// Build a strptime() using C++11's std::get_time().
6163char * strptime (const char * s, const char * fmt, std::tm* tm) {
6264 std::istringstream input (s);
You can’t perform that action at this time.
0 commit comments