Index: include/v8config.h |
diff --git a/include/v8config.h b/include/v8config.h |
index 6fe5c5aabc719e011d2f7e9741bdf8c19399c561..834f9c50ec07794ee5eaf22696bc7664bca8b7a8 100644 |
--- a/include/v8config.h |
+++ b/include/v8config.h |
@@ -245,6 +245,7 @@ |
// older compilers. |
# define V8_HAS_ATTRIBUTE_ALWAYS_INLINE (V8_GNUC_PREREQ(4, 4, 0)) |
# define V8_HAS_ATTRIBUTE_DEPRECATED (V8_GNUC_PREREQ(3, 4, 0)) |
+# define V8_HAS_ATTRIBUTE_DEPRECATED_MESSAGE (V8_GNUC_PREREQ(4, 5, 0)) |
# define V8_HAS_ATTRIBUTE_NOINLINE (V8_GNUC_PREREQ(3, 4, 0)) |
# define V8_HAS_ATTRIBUTE_VISIBILITY (V8_GNUC_PREREQ(4, 3, 0)) |
# define V8_HAS_ATTRIBUTE_WARN_UNUSED_RESULT \ |
@@ -320,12 +321,16 @@ |
// A macro to mark classes or functions as deprecated. |
-#if !V8_DISABLE_DEPRECATIONS && V8_HAS_ATTRIBUTE_DEPRECATED |
-# define V8_DEPRECATED(declarator) declarator __attribute__((deprecated)) |
-#elif !V8_DISABLE_DEPRECATIONS && V8_HAS_DECLSPEC_DEPRECATED |
-# define V8_DEPRECATED(declarator) __declspec(deprecated) declarator |
+#if defined(V8_DEPRECATION_WARNINGS) && V8_HAS_ATTRIBUTE_DEPRECATED_MESSAGE |
+# define V8_DEPRECATED(message, declarator) \ |
+declarator __attribute__((deprecated(message))) |
+#elif defined(V8_DEPRECATION_WARNINGS) && V8_HAS_ATTRIBUTE_DEPRECATED |
+# define V8_DEPRECATED(message, declarator) \ |
+declarator __attribute__((deprecated)) |
+#elif defined(V8_DEPRECATION_WARNINGS) && V8_HAS_DECLSPEC_DEPRECATED |
+# define V8_DEPRECATED(message, declarator) __declspec(deprecated) declarator |
#else |
-# define V8_DEPRECATED(declarator) declarator |
+# define V8_DEPRECATED(message, declarator) declarator |
#endif |