Guard ObjC-specific code in Heap.cpp with USE(FOUNDATION)
authorannulen@yandex.ru <annulen@yandex.ru@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 30 Apr 2016 21:21:22 +0000 (21:21 +0000)
committerannulen@yandex.ru <annulen@yandex.ru@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 30 Apr 2016 21:21:22 +0000 (21:21 +0000)
https://bugs.webkit.org/show_bug.cgi?id=157236

Reviewed by Darin Adler.

This also fixes build with GCC 4.8 which does not provide
__has_include.

* heap/Heap.cpp:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@200295 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/heap/Heap.cpp

index 5702e52..19e5a6a 100644 (file)
@@ -1,3 +1,15 @@
+2016-04-30  Konstantin Tokarev  <annulen@yandex.ru>
+
+        Guard ObjC-specific code in Heap.cpp with USE(FOUNDATION)
+        https://bugs.webkit.org/show_bug.cgi?id=157236
+
+        Reviewed by Darin Adler.
+
+        This also fixes build with GCC 4.8 which does not provide
+        __has_include.
+
+        * heap/Heap.cpp:
+
 2016-04-30  Yusuke Suzuki  <utatane.tea@gmail.com>
 
         Assertion failure for destructuring assignment with new.target and unary operator
index de1a6b3..06deb8d 100644 (file)
 #include <wtf/ProcessID.h>
 #include <wtf/RAMSize.h>
 
+#if USE(FOUNDATION)
 #if __has_include(<objc/objc-internal.h>)
 #include <objc/objc-internal.h>
 #else
 extern "C" void* objc_autoreleasePoolPush(void);
 extern "C" void objc_autoreleasePoolPop(void *context);
 #endif
+#endif // USE(FOUNDATION)
 
 using namespace std;