aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2014-10-06 11:42:00 +0200
committerDavid Robillard <d@drobilla.net>2014-12-16 18:31:22 -0500
commit9c7c762945249d6694f17d0e76a152364c4a0088 (patch)
tree2de09b52e5885ac0534f05e40b2e9cbc0fea93f8
parent2e07e028c1080051846b1b200493e528a8f9a5e6 (diff)
64bit Windows update.
Conflicts: pugl/pugl_win.cpp
-rw-r--r--pugl/pugl_win.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/pugl/pugl_win.cpp b/pugl/pugl_win.cpp
index 2040b98..8ac879e 100644
--- a/pugl/pugl_win.cpp
+++ b/pugl/pugl_win.cpp
@@ -36,6 +36,15 @@
#ifndef WHEEL_DELTA
# define WHEEL_DELTA 120
#endif
+#ifdef _WIN64
+# ifndef GWLP_USERDATA
+# define GWLP_USERDATA (-21)
+# endif
+#else
+# ifndef GWL_USERDATA
+# define GWL_USERDATA (-21)
+# endif
+#endif
#define PUGL_LOCAL_CLOSE_MSG (WM_USER + 50)
@@ -154,7 +163,7 @@ puglCreateWindow(PuglView* view, const char* title)
free(view);
return 1;
}
-
+
#ifdef _WIN64
SetWindowLongPtr(impl->hwnd, GWLP_USERDATA, (LONG_PTR)view);
#else