Windows build fix
authoraroben@apple.com <aroben@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 24 Oct 2008 21:09:21 +0000 (21:09 +0000)
committeraroben@apple.com <aroben@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 24 Oct 2008 21:09:21 +0000 (21:09 +0000)
        * WebCoreSupport/WebInspectorClientCF.cpp: Define WTF_PLATFORM_CF
        manually. Normally this gets defined on Windows by including config.h,
        but Mac has no config.h for WebKit, so we can't do that here.

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

WebKit/cf/ChangeLog
WebKit/cf/WebCoreSupport/WebInspectorClientCF.cpp

index 5f63651..3e06358 100644 (file)
@@ -1,3 +1,11 @@
+2008-10-24  Adam Roben  <aroben@apple.com>
+
+        Windows build fix
+
+        * WebCoreSupport/WebInspectorClientCF.cpp: Define WTF_PLATFORM_CF
+        manually. Normally this gets defined on Windows by including config.h,
+        but Mac has no config.h for WebKit, so we can't do that here.
+
 2008-10-24  Timothy Hatcher  <timothy@apple.com>
 
         Implement new InspectorClient methods to work with Settings.
index 553675b..a4cb934 100644 (file)
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+// FIXME: On Windows, we require all WebKit source files to include config.h
+// before including any other files. Failing to include config.h will leave
+// WTF_PLATFORM_CF undefined, causing build failures in this file. But Mac
+// doesn't have a config.h for WebKit, so we can't include the Windows one
+// here. For now we can just define WTF_PLATFORM_CF manually, but we need a
+// better long-term solution.
+#ifndef WTF_PLATFORM_CF
+#define WTF_PLATFORM_CF 1
+#endif
+
 #include "WebInspectorClient.h"
 
 #include <CoreFoundation/CoreFoundation.h>