From ffa8abdcd899778eeda66cb425c6d54ac9764f78 Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Sun, 28 Jul 2013 15:28:20 +0200 Subject: Bug 704971 - Can't build with MinGW --- PLATFORMS | 1 + addon/doxywizard/doxywizard.cpp | 2 +- configure | 3 +++ doc/install.doc | 5 +++-- qtools/qcstring.h | 2 +- qtools/qfileinfo_win32.cpp | 3 ++- src/doxygen.pro.in | 2 +- src/objcache.cpp | 2 +- 8 files changed, 13 insertions(+), 7 deletions(-) diff --git a/PLATFORMS b/PLATFORMS index c358a1d..22a8d8c 100644 --- a/PLATFORMS +++ b/PLATFORMS @@ -29,3 +29,4 @@ sunos-g++ ultrix-g++ unixware-g++ win32-g++ +win32-mingw diff --git a/addon/doxywizard/doxywizard.cpp b/addon/doxywizard/doxywizard.cpp index 9bdf39d..22e2384 100644 --- a/addon/doxywizard/doxywizard.cpp +++ b/addon/doxywizard/doxywizard.cpp @@ -525,7 +525,7 @@ void MainWindow::showHtmlOutput() // TODO: the following doesn't seem to work with IE #ifdef WIN32 //QString indexUrl(QString::fromAscii("file:///")); - ShellExecute(NULL, L"open", fi.absoluteFilePath().utf16(), NULL, NULL, SW_SHOWNORMAL); + ShellExecute(NULL, L"open", (LPCWSTR)fi.absoluteFilePath().utf16(), NULL, NULL, SW_SHOWNORMAL); #else QString indexUrl(QString::fromAscii("file://")); indexUrl+=fi.absoluteFilePath(); diff --git a/configure b/configure index 48acdee..1596b40 100755 --- a/configure +++ b/configure @@ -266,6 +266,9 @@ if test -z "$f_platform"; then Cygwin:*|CYGWIN*) f_platform=win32-g++ ;; + MINGW32_NT*) + f_platform=win32-mingw + ;; *MiNT:*) f_platform=m68k-atari-mint-g++ ;; diff --git a/doc/install.doc b/doc/install.doc index 4eb0308..a4fe2f7 100644 --- a/doc/install.doc +++ b/doc/install.doc @@ -29,9 +29,10 @@ If you downloaded the source distribution, you need at least the following to build the executable: