Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(499)

Unified Diff: compat/win/time.cc

Issue 1119783005: win: get tools/crashpad_database_util mostly working (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: roll Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: compat/win/time.cc
diff --git a/compat/win/sys/time.h b/compat/win/time.cc
similarity index 74%
copy from compat/win/sys/time.h
copy to compat/win/time.cc
index 46bdef2a3810669fcf310d9d8a29a29980c3c894..dd9f6a8d496e96448fd631f205343e314bdbc228 100644
--- a/compat/win/sys/time.h
+++ b/compat/win/time.cc
@@ -12,12 +12,13 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#ifndef CRASHPAD_COMPAT_WIN_SYS_TIME_H_
-#define CRASHPAD_COMPAT_WIN_SYS_TIME_H_
+#include <time.h>
-struct timeval {
- long tv_sec;
- long tv_usec;
-};
+const char* strptime(const char* buf, const char* format, struct tm* tm) {
+ // TODO(scottmg): strptime implementation.
+ return nullptr;
+}
-#endif // CRASHPAD_COMPAT_WIN_SYS_TIME_H_
+time_t timegm(struct tm* tm) {
+ return _mkgmtime(tm);
+}

Powered by Google App Engine
This is Rietveld 408576698