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

Unified Diff: compat/win/time.h

Issue 1119783005: win: get tools/crashpad_database_util mostly working (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: sort 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.h
diff --git a/util/win/time.h b/compat/win/time.h
similarity index 62%
copy from util/win/time.h
copy to compat/win/time.h
index e61a8461bf987c45fd38bc7452633529ae159c83..250abf3a162b91eeaa59338cc99b3463014694a1 100644
--- a/util/win/time.h
+++ b/compat/win/time.h
@@ -12,16 +12,17 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#ifndef CRASHPAD_UTIL_WIN_TIME_H_
-#define CRASHPAD_UTIL_WIN_TIME_H_
+#ifndef CRASHPAD_COMPAT_WIN_TIME_H_
+#define CRASHPAD_COMPAT_WIN_TIME_H_
-#include <sys/time.h>
+#include <../include/time.h>
-namespace crashpad {
+struct tm* gmtime_r(const time_t* timep, struct tm* result);
Mark Mentovai 2015/05/06 04:31:46 Wrap the declarations in extern "C", and the defin
scottmg 2015/05/06 17:28:14 Done.
-//! \brief Similar to POSIX gettimeofday(), gets the current system time in UTC.
-void GetTimeOfDay(timeval* tv);
+struct tm* localtime_r(const time_t* timep, struct tm* result);
-} // namespace crashpad
+const char *strptime(const char* buf, const char* format, struct tm* tm);
Mark Mentovai 2015/05/06 04:31:46 Move the * onto char.
scottmg 2015/05/06 17:28:14 Done.
-#endif // CRASHPAD_UTIL_WIN_TIME_H_
+time_t timegm(struct tm* tm);
+
+#endif // CRASHPAD_COMPAT_WIN_TIME_H_
« no previous file with comments | « compat/win/getopt.h ('k') | compat/win/time.cc » ('j') | third_party/getopt/README.crashpad » ('J')

Powered by Google App Engine
This is Rietveld 408576698