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_ |