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

Unified Diff: third_party/double-conversion/src/utils.h

Issue 2019983002: Roll third_party/double_conversion (Closed) Base URL: git@github.com:dartino/sdk.git@master
Patch Set: Minor update Created 4 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 | « third_party/double-conversion/src/double-conversion.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/double-conversion/src/utils.h
diff --git a/third_party/double-conversion/src/utils.h b/third_party/double-conversion/src/utils.h
index ce41e6261a41001ec5a0f45581db91dfb5ef248e..51d5e61e311a2b8e383b8ad3fc9c351f939b2ece 100644
--- a/third_party/double-conversion/src/utils.h
+++ b/third_party/double-conversion/src/utils.h
@@ -39,9 +39,23 @@
#ifndef UNIMPLEMENTED
#define UNIMPLEMENTED() (abort())
#endif
+#ifndef DOUBLE_CONVERSION_NO_RETURN
+#ifdef _MSC_VER
+#define DOUBLE_CONVERSION_NO_RETURN __declspec(noreturn)
+#else
+#define DOUBLE_CONVERSION_NO_RETURN __attribute__((noreturn))
+#endif
+#endif
#ifndef UNREACHABLE
+#ifdef _MSC_VER
+void DOUBLE_CONVERSION_NO_RETURN abort_noreturn();
+inline void abort_noreturn() { abort(); }
+#define UNREACHABLE() (abort_noreturn())
+#else
#define UNREACHABLE() (abort())
#endif
+#endif
+
// Double operations detection based on target architecture.
// Linux uses a 80bit wide floating point stack on x86. This induces double
« no previous file with comments | « third_party/double-conversion/src/double-conversion.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698