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

Unified Diff: runtime/platform/assert_android.cc

Issue 10968027: Fix Android build breaks (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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: runtime/platform/assert_android.cc
diff --git a/runtime/platform/assert.cc b/runtime/platform/assert_android.cc
similarity index 96%
copy from runtime/platform/assert.cc
copy to runtime/platform/assert_android.cc
index 2ea934965eb53437d05705ac9f73987982c421b9..bb91bfb5d6b4825faf8593e2c8583f65f2bb674d 100644
--- a/runtime/platform/assert.cc
+++ b/runtime/platform/assert_android.cc
@@ -38,11 +38,11 @@ void DynamicAssertionHelper::Fail(const char* format, ...) {
// TODO(5411324): replace std::abort with OS::Abort so that we can handle
// restoring of signal handlers before aborting.
if (kind_ == ASSERT) {
- std::abort();
+ abort();
}
static bool failed = false;
if (!failed) {
- std::atexit(&failed_exit);
+ atexit(&failed_exit);
}
failed = true;
}

Powered by Google App Engine
This is Rietveld 408576698