Reviewers: Michael Starzinger, danno,
Message:
Build fix for older Clang versions.
Description:
Fix for older clang releases that lack __has_extension.
[email protected]
Please review this at https://codereview.chromium.org/21237002/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files:
M src/globals.h
Index: src/globals.h
diff --git a/src/globals.h b/src/globals.h
index
627c951236319aa3192d0d274fca510269487402..c380103febc1b2a0a96453087147d7fcddc0adf9
100644
--- a/src/globals.h
+++ b/src/globals.h
@@ -116,6 +116,9 @@
# define V8_CC_INTEL 1 // Intel C++ also masquerades as GCC 3.2.0
# elif defined(__clang__)
# define V8_CC_CLANG 1 // Clang also masquerades as GCC 4.2.1
+# ifndef __has_extension
+# define __has_extension __has_feature // Compatibility with older
releases
+# endif
# endif
#elif defined(__ARMCC__) || defined(__CC_ARM)
# define V8_CC_RVCT 1
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.