# HG changeset patch # User Chris Cannam # Date 1544190001 0 # Node ID 0180c7f925636b7c9043b28f94b3ff683cbb62fc # Parent 44fa471eb3c42e6c276f2037292a857850f03157 Build fixes diff -r 44fa471eb3c4 -r 0180c7f92563 .hgignore --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.hgignore Fri Dec 07 13:40:01 2018 +0000 @@ -0,0 +1,5 @@ +syntax: glob +build_win32 +moc_* +*.obj +stable.h.cpp diff -r 44fa471eb3c4 -r 0180c7f92563 kdiff3/src-QT4/ccInstHelper.cpp --- a/kdiff3/src-QT4/ccInstHelper.cpp Fri May 27 14:16:02 2016 +0100 +++ b/kdiff3/src-QT4/ccInstHelper.cpp Fri Dec 07 13:40:01 2018 +0000 @@ -17,7 +17,7 @@ #endif struct ReplacementItem -{ char* fileType; char* operationType; }; +{ const char* fileType; const char* operationType; }; ReplacementItem g_replacementTable[] = { {"text_file_delta", "xcompare"}, diff -r 44fa471eb3c4 -r 0180c7f92563 kdiff3/src-QT4/fileaccess.cpp --- a/kdiff3/src-QT4/fileaccess.cpp Fri May 27 14:16:02 2016 +0100 +++ b/kdiff3/src-QT4/fileaccess.cpp Fri Dec 07 13:40:01 2018 +0000 @@ -1264,6 +1264,10 @@ WIN32_FIND_DATA findData; WIN32_FIND_DATAA& findDataA=*(WIN32_FIND_DATAA*)&findData; // Needed for Win95 +#ifndef QT_WA_INLINE +#define QT_WA_INLINE(unicode, ansi) (unicode) +#endif + Qt::HANDLE searchHandle = QT_WA_INLINE( FindFirstFile( (TCHAR*)pattern.utf16(), &findData ), FindFirstFileA( pattern.toLocal8Bit(), &findDataA ) diff -r 44fa471eb3c4 -r 0180c7f92563 kdiff3/src-QT4/kreplacements/ShellContextMenu.cpp --- a/kdiff3/src-QT4/kreplacements/ShellContextMenu.cpp Fri May 27 14:16:02 2016 +0100 +++ b/kdiff3/src-QT4/kreplacements/ShellContextMenu.cpp Fri Dec 07 13:40:01 2018 +0000 @@ -148,7 +148,7 @@ UINT CShellContextMenu::ShowContextMenu(QWidget * pParentWidget, QPoint pt, QMenu* pMenu ) { - HWND hWnd = pParentWidget->winId(); + HWND hWnd = (HWND)pParentWidget->winId(); int iMenuType = 0; // to know which version of IContextMenu is supported LPCONTEXTMENU pContextMenu; // common pointer to IContextMenu and higher version interface @@ -187,7 +187,7 @@ else OldWndProc = NULL; - UINT idCommand = TrackPopupMenu (m_hMenu,TPM_RETURNCMD | TPM_LEFTALIGN, pt.x(), pt.y(), 0, pParentWidget->winId(), 0); + UINT idCommand = TrackPopupMenu (m_hMenu,TPM_RETURNCMD | TPM_LEFTALIGN, pt.x(), pt.y(), 0, (HWND)pParentWidget->winId(), 0); if (OldWndProc) // unsubclass SetWindowLong (hWnd, GWL_WNDPROC, (DWORD) OldWndProc); diff -r 44fa471eb3c4 -r 0180c7f92563 kdiff3/src-QT4/kreplacements/kreplacements.cpp --- a/kdiff3/src-QT4/kreplacements/kreplacements.cpp Fri May 27 14:16:02 2016 +0100 +++ b/kdiff3/src-QT4/kreplacements/kreplacements.cpp Fri Dec 07 13:40:01 2018 +0000 @@ -80,7 +80,7 @@ #ifndef Q_OS_OS2 char buf[256]; - HINSTANCE hi = FindExecutableA( helpFile.fileName().toAscii(), helpFile.absolutePath().toAscii(), buf ); + HINSTANCE hi = FindExecutableA( helpFile.fileName().toLocal8Bit(), helpFile.absolutePath().toLocal8Bit(), buf ); if ( int(hi)<=32 ) { #endif