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

Unified Diff: src/globals.h

Issue 21237002: Fix for older clang releases that lack __has_extension. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698