From 71ec01e34b03557cfed9df5f417791a189e7fca6 Mon Sep 17 00:00:00 2001 From: Josh Haberman Date: Tue, 5 Mar 2019 19:34:20 -0800 Subject: Fix for Windows. --- upb/json/parser.rl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'upb/json/parser.rl') diff --git a/upb/json/parser.rl b/upb/json/parser.rl index 75edb3b..3444257 100644 --- a/upb/json/parser.rl +++ b/upb/json/parser.rl @@ -1535,9 +1535,8 @@ static bool end_timestamp_base(upb_json_parser *p, const char *ptr) { timestamp_buf[UPB_TIMESTAMP_BASE_SIZE + 3] = 0; #if defined __MINGW32__ || defined __MINGW64__ - upb_status_seterrf( - &p->status, "error parsing timestamp: mingw doesn't support strptime"); - upb_env_reporterror(p->env, &p->status); + upb_status_seterrf(p->status, + "error parsing timestamp: mingw doesn't support strptime"); return false; #else /* Parse seconds */ -- cgit v1.2.3