summaryrefslogtreecommitdiff
path: root/plugingui
diff options
context:
space:
mode:
Diffstat (limited to 'plugingui')
-rw-r--r--plugingui/filebrowser.cc2
-rw-r--r--plugingui/nativewindow_win32.cc4
2 files changed, 3 insertions, 3 deletions
diff --git a/plugingui/filebrowser.cc b/plugingui/filebrowser.cc
index e9eca6c..6ecbc09 100644
--- a/plugingui/filebrowser.cc
+++ b/plugingui/filebrowser.cc
@@ -41,7 +41,7 @@
#include <hugin.hpp>
-#ifdef WIN32
+#ifdef __MINGW32__
#include <direct.h>
#endif
diff --git a/plugingui/nativewindow_win32.cc b/plugingui/nativewindow_win32.cc
index 89844da..871bafe 100644
--- a/plugingui/nativewindow_win32.cc
+++ b/plugingui/nativewindow_win32.cc
@@ -33,7 +33,7 @@
LRESULT CALLBACK dialogProc(HWND hwnd, UINT msg, WPARAM wp, LPARAM lp)
{
GUI::NativeWindowWin32 *native =
- (GUI::NativeWindowWin32 *)GetWindowLong(hwnd, GWL_USERDATA);
+ (GUI::NativeWindowWin32 *)GetWindowLongPtr(hwnd, GWLP_USERDATA);
// NOTE: 'native' is NULL intil the WM_CREATE message has been handled.
if(!native) return DefWindowProc(hwnd, msg, wp, lp);
@@ -311,7 +311,7 @@ GUI::NativeWindowWin32::NativeWindowWin32(GUI::Window *window)
wndId, NULL,
GetModuleHandle(NULL), NULL);
- SetWindowLongPtr(m_hwnd, GWL_USERDATA, (LONG_PTR)this);
+ SetWindowLongPtr(m_hwnd, GWLP_USERDATA, (LONG_PTR)this);
}
GUI::NativeWindowWin32::~NativeWindowWin32()