diff options
author | Charles Pigott <charlespigott@googlemail.com> | 2019-01-12 23:00:55 +0000 |
---|---|---|
committer | Charles Pigott <charlespigott@googlemail.com> | 2019-01-17 21:55:15 +0000 |
commit | 2d981a4b2c63f5a1ae28aa49c8622503c31ffc3e (patch) | |
tree | 69e3b471604d44a70c7b0539d22879a2b4a25e80 /src | |
parent | 11065342620f920e7b3a1227e41e941313707597 (diff) | |
download | openttd-2d981a4b2c63f5a1ae28aa49c8622503c31ffc3e.tar.xz |
Fix: A few minor compile warnings under MinGW
Diffstat (limited to 'src')
-rw-r--r-- | src/os/windows/win32.cpp | 1 | ||||
-rw-r--r-- | src/video/win32_v.cpp | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/os/windows/win32.cpp b/src/os/windows/win32.cpp index bb1a0a420..a84347ed1 100644 --- a/src/os/windows/win32.cpp +++ b/src/os/windows/win32.cpp @@ -17,6 +17,7 @@ #include <windows.h> #include <fcntl.h> #include <regstr.h> +#define NO_SHOBJIDL_SORTDIRECTION // Avoid multiple definition of SORT_ASCENDING #include <shlobj.h> /* SHGetFolderPath */ #include <shellapi.h> #include "win32.h" diff --git a/src/video/win32_v.cpp b/src/video/win32_v.cpp index 0655065a6..29a065720 100644 --- a/src/video/win32_v.cpp +++ b/src/video/win32_v.cpp @@ -238,7 +238,7 @@ int RedrawScreenDebug() #define TID_POLLMOUSE 1 #define MOUSE_POLL_DELAY 75 -static void CALLBACK TrackMouseTimerProc(HWND hwnd, UINT msg, UINT event, DWORD time) +static void CALLBACK TrackMouseTimerProc(HWND hwnd, UINT msg, UINT_PTR event, DWORD time) { RECT rc; POINT pt; |