summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
Diffstat (limited to 'webkit')
-rw-r--r--webkit/glue/webcursor.cc6
-rw-r--r--webkit/glue/webcursor.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/webkit/glue/webcursor.cc b/webkit/glue/webcursor.cc
index cccb3a0..ad5c345 100644
--- a/webkit/glue/webcursor.cc
+++ b/webkit/glue/webcursor.cc
@@ -5,8 +5,8 @@
#include "webkit/glue/webcursor.h"
#include "webkit/glue/webkit_resources.h"
-#if PLATFORM(WIN)
-#include "base/gfx/gdi_util.h"
+#if defined(OS_WIN)
+#include "base/gfx/bitmap_header.h"
#endif
WebCursor::WebCursor()
@@ -56,7 +56,7 @@ WebCursor& WebCursor::operator=(const WebCursor& other) {
}
return *this;
}
-#if PLATFORM(WIN)
+#if defined(OS_WIN)
HCURSOR WebCursor::GetCursor(HINSTANCE module_handle) const {
if (type_ == CUSTOM)
return NULL;
diff --git a/webkit/glue/webcursor.h b/webkit/glue/webcursor.h
index ba35c2c..a80d39c 100644
--- a/webkit/glue/webcursor.h
+++ b/webkit/glue/webcursor.h
@@ -6,7 +6,7 @@
#define WEBCURSOR_H__
#include "skia/include/SkBitmap.h"
-#include <wtf/Platform.h>
+#include "build/build_config.h"
// This class provides the functionality of a generic cursor type. The intent
// is to stay away from platform specific code here. We do have win32 specific
@@ -70,7 +70,7 @@ public:
hotspot_x_ = hotspot_x;
hotspot_y_ = hotspot_x;
}
-#if PLATFORM(WIN)
+#if defined(OS_WIN)
// Returns the cursor handle. If the cursor type is a win32 or safari
// cursor, we use LoadCursor to load the cursor.
// Returns NULL on error.