summaryrefslogtreecommitdiff
path: root/shell/source/win32/shlxthandler/thumbviewer
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@novell.com>2011-06-24 16:41:19 +0300
committerTor Lillqvist <tlillqvist@novell.com>2011-06-24 16:42:28 +0300
commit06c8108fe5c196aec2888d9b236f595f2bcb1c46 (patch)
tree264eb643e279cd2b943dcf5d78f72b26aeec56dc /shell/source/win32/shlxthandler/thumbviewer
parent58442b0f17a7dd645b29a338d8c936aa36b62bc5 (diff)
Attempt to make this build with MinGW
Diffstat (limited to 'shell/source/win32/shlxthandler/thumbviewer')
-rwxr-xr-xshell/source/win32/shlxthandler/thumbviewer/makefile.mk3
-rw-r--r--shell/source/win32/shlxthandler/thumbviewer/thumbviewer.cxx4
2 files changed, 7 insertions, 0 deletions
diff --git a/shell/source/win32/shlxthandler/thumbviewer/makefile.mk b/shell/source/win32/shlxthandler/thumbviewer/makefile.mk
index fddea0d51ae8..ed90b9c198ce 100755
--- a/shell/source/win32/shlxthandler/thumbviewer/makefile.mk
+++ b/shell/source/win32/shlxthandler/thumbviewer/makefile.mk
@@ -37,6 +37,9 @@ ENABLE_EXCEPTIONS=TRUE
CFLAGS+=-DWIN32_LEAN_AND_MEAN -D_NTSDK -DUNICODE -D_UNICODE -D_WIN32_WINNT=0x0501
CDEFS+=-D_WIN32_IE=0x501
+.IF "$(COM)" == "GCC"
+CDEFS+=-DDONT_HAVE_GDIPLUS
+.ENDIF
# --- Files --------------------------------------------------------
diff --git a/shell/source/win32/shlxthandler/thumbviewer/thumbviewer.cxx b/shell/source/win32/shlxthandler/thumbviewer/thumbviewer.cxx
index cd573e38f7cf..19567cff80e0 100644
--- a/shell/source/win32/shlxthandler/thumbviewer/thumbviewer.cxx
+++ b/shell/source/win32/shlxthandler/thumbviewer/thumbviewer.cxx
@@ -26,6 +26,8 @@
*
************************************************************************/
+#ifndef DONT_HAVE_GDIPLUS
+
// MARKER(update_precomp.py): autogen include statement, do not remove
#include "precompiled_shell.hxx"
@@ -529,4 +531,6 @@ Gdiplus::Rect CThumbviewer::CalcScaledAspectRatio(Gdiplus::Rect src, Gdiplus::Re
return result;
}
+#endif // DONT_HAVE_GDIPLUS
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */