Title: [174462] trunk/Source/WTF
- Revision
- 174462
- Author
- [email protected]
- Date
- 2014-10-08 10:56:49 -0700 (Wed, 08 Oct 2014)
Log Message
[Win] Resolve warnings about missing __has_include macro under MSVC
https://bugs.webkit.org/show_bug.cgi?id=137524
Reviewed by Anders Carlsson.
* wtf/Compiler.h: Provide a dummy implementation of __has_include that
avoids the warning without changing compile behavior.
Modified Paths
Diff
Modified: trunk/Source/WTF/ChangeLog (174461 => 174462)
--- trunk/Source/WTF/ChangeLog 2014-10-08 17:40:09 UTC (rev 174461)
+++ trunk/Source/WTF/ChangeLog 2014-10-08 17:56:49 UTC (rev 174462)
@@ -1,3 +1,13 @@
+2014-10-08 Brent Fulgham <[email protected]>
+
+ [Win] Resolve warnings about missing __has_include macro under MSVC
+ https://bugs.webkit.org/show_bug.cgi?id=137524
+
+ Reviewed by Anders Carlsson.
+
+ * wtf/Compiler.h: Provide a dummy implementation of __has_include that
+ avoids the warning without changing compile behavior.
+
2014-10-07 Brent Fulgham <[email protected]>
[Win] Resolve some MSVC static analyzer warnings
Modified: trunk/Source/WTF/wtf/Compiler.h (174461 => 174462)
--- trunk/Source/WTF/wtf/Compiler.h 2014-10-08 17:40:09 UTC (rev 174461)
+++ trunk/Source/WTF/wtf/Compiler.h 2014-10-08 17:56:49 UTC (rev 174462)
@@ -294,4 +294,8 @@
#define WARN_UNUSED_RETURN
#endif
+#if !defined(__has_include) && COMPILER(MSVC)
+#define __has_include(path) 0
+#endif
+
#endif /* WTF_Compiler_h */
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes