summaryrefslogtreecommitdiff
path: root/canvas
diff options
context:
space:
mode:
authorPeter Foley <pefoley2@verizon.net>2012-08-24 15:52:09 -0400
committerNorbert Thiebaud <nthiebaud@gmail.com>2012-10-07 02:03:06 +0000
commitffbcd1c8b4ff839a16ddd93cdf6eec82bccf8eb4 (patch)
tree203749d0232088176dfafd3b065713ad1490ee8f /canvas
parentbac631c43d53e0f1eb679a853d1fbbb9954d6e3a (diff)
fix canvas build with Win8 SDK
Change-Id: I17bd44ba8f5a6484d10bb64201ace8e030cf334d Reviewed-on: https://gerrit.libreoffice.org/789 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
Diffstat (limited to 'canvas')
-rw-r--r--canvas/Library_directx9canvas.mk6
-rw-r--r--canvas/Library_gdipluscanvas.mk6
-rw-r--r--canvas/StaticLibrary_directxcanvas.mk6
-rw-r--r--canvas/source/directx/dx_winstuff.hxx6
4 files changed, 24 insertions, 0 deletions
diff --git a/canvas/Library_directx9canvas.mk b/canvas/Library_directx9canvas.mk
index 22a989a308b0..6fcba4e002cb 100644
--- a/canvas/Library_directx9canvas.mk
+++ b/canvas/Library_directx9canvas.mk
@@ -43,6 +43,12 @@ $(eval $(call gb_Library_add_defs,directx9canvas,\
-UNOMINMAX \
))
+ifeq ($(WINDOWS_SDK_VERSION),80)
+$(eval $(call gb_Library_add_defs,directx9canvas,\
+ -DWIN8_SDK=1 \
+))
+endif
+
$(eval $(call gb_Library_use_libraries,directx9canvas,\
cppu \
tk \
diff --git a/canvas/Library_gdipluscanvas.mk b/canvas/Library_gdipluscanvas.mk
index 327f9c1b2927..b20ac69fb276 100644
--- a/canvas/Library_gdipluscanvas.mk
+++ b/canvas/Library_gdipluscanvas.mk
@@ -43,6 +43,12 @@ $(eval $(call gb_Library_add_defs,gdipluscanvas,\
-UNOMINMAX \
))
+ifeq ($(WINDOWS_SDK_VERSION),80)
+$(eval $(call gb_Library_add_defs,gdipluscanvas,\
+ -DWIN8_SDK=1 \
+))
+endif
+
ifneq ($(strip $(VERBOSE)$(verbose)),)
$(eval $(call gb_Library_add_defs,gdipluscanvas,\
-DVERBOSE \
diff --git a/canvas/StaticLibrary_directxcanvas.mk b/canvas/StaticLibrary_directxcanvas.mk
index 232429cb7c4a..fed7f87e8cd8 100644
--- a/canvas/StaticLibrary_directxcanvas.mk
+++ b/canvas/StaticLibrary_directxcanvas.mk
@@ -43,6 +43,12 @@ $(eval $(call gb_StaticLibrary_add_defs,directxcanvas,\
-UNOMINMAX \
))
+ifeq ($(WINDOWS_SDK_VERSION),80)
+$(eval $(call gb_StaticLibrary_add_defs,directxcanvas,\
+ -DWIN8_SDK=1 \
+))
+endif
+
$(eval $(call gb_StaticLibrary_add_exception_objects,directxcanvas,\
canvas/source/directx/dx_bitmap \
canvas/source/directx/dx_bitmapcanvashelper \
diff --git a/canvas/source/directx/dx_winstuff.hxx b/canvas/source/directx/dx_winstuff.hxx
index 595022e10182..82fe2d8c51b1 100644
--- a/canvas/source/directx/dx_winstuff.hxx
+++ b/canvas/source/directx/dx_winstuff.hxx
@@ -81,6 +81,12 @@
typedef IDirectDrawSurface surface_type;
+#elif WIN8_SDK == 1 //Windows 8 SDK
+
+ #include <d3d9.h>
+
+ typedef IDirect3DSurface9 surface_type;
+
#else
#include <dxsdkver.h>