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

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: fixes 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
« no previous file with comments | « compat/win/getopt.h ('k') | compat/win/time.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compat/win/time.h
diff --git a/compat/mac/sys/resource.h b/compat/win/time.h
similarity index 58%
copy from compat/mac/sys/resource.h
copy to compat/win/time.h
index 0697e169b58de22e5d34ba36f808aad2b94c4beb..7c6adc2ce8dfe8f21b2c5fa7cef828016f3c8d22 100644
--- a/compat/mac/sys/resource.h
+++ b/compat/win/time.h
@@ -12,15 +12,25 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#ifndef CRASHPAD_COMPAT_MAC_SYS_RESOURCE_H_
-#define CRASHPAD_COMPAT_MAC_SYS_RESOURCE_H_
+#ifndef CRASHPAD_COMPAT_WIN_TIME_H_
+#define CRASHPAD_COMPAT_WIN_TIME_H_
-#include_next <sys/resource.h>
+#include <../include/time.h>
-// 10.9 SDK
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+struct tm* gmtime_r(const time_t* timep, struct tm* result);
+
+struct tm* localtime_r(const time_t* timep, struct tm* result);
+
+const char* strptime(const char* buf, const char* format, struct tm* tm);
+
+time_t timegm(struct tm* tm);
-#ifndef WAKEMON_MAKE_FATAL
-#define WAKEMON_MAKE_FATAL 0x10
+#ifdef __cplusplus
+} // extern "C"
#endif
-#endif // CRASHPAD_COMPAT_MAC_SYS_RESOURCE_H_
+#endif // CRASHPAD_COMPAT_WIN_TIME_H_
« no previous file with comments | « compat/win/getopt.h ('k') | compat/win/time.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698