diff options
author | Robin Gareus <robin@gareus.org> | 2014-10-06 11:42:00 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-12-16 18:31:22 -0500 |
commit | 9c7c762945249d6694f17d0e76a152364c4a0088 (patch) | |
tree | 2de09b52e5885ac0534f05e40b2e9cbc0fea93f8 /pugl/pugl_win.cpp | |
parent | 2e07e028c1080051846b1b200493e528a8f9a5e6 (diff) | |
download | pugl-9c7c762945249d6694f17d0e76a152364c4a0088.tar.gz pugl-9c7c762945249d6694f17d0e76a152364c4a0088.tar.bz2 pugl-9c7c762945249d6694f17d0e76a152364c4a0088.zip |
64bit Windows update.
Conflicts:
pugl/pugl_win.cpp
Diffstat (limited to 'pugl/pugl_win.cpp')
-rw-r--r-- | pugl/pugl_win.cpp | 11 |
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 |