|
From: <arj...@us...> - 2013-07-07 12:59:54
|
Revision: 12404
http://sourceforge.net/p/plplot/code/12404
Author: arjenmarkus
Date: 2013-07-07 12:59:52 +0000 (Sun, 07 Jul 2013)
Log Message:
-----------
Use the SetClassLongPtr() function in stead of SetClassLong() to make the code
useable for both 32-bits and 64-bits versions.
Modified Paths:
--------------
trunk/drivers/wingcc.c
Modified: trunk/drivers/wingcc.c
===================================================================
--- trunk/drivers/wingcc.c 2013-07-02 00:04:52 UTC (rev 12403)
+++ trunk/drivers/wingcc.c 2013-07-07 12:59:52 UTC (rev 12404)
@@ -199,14 +199,14 @@
SetClassLong( dev->hwnd, GCL_HCURSOR, (long) dev->cursor ); \
SetCursor( dev->cursor ); } while ( 0 )
-#define NormalCursor() do { \
- dev->cursor = LoadCursor( NULL, IDC_ARROW ); \
- SetClassLong( dev->hwnd, GCL_HCURSOR, (long) dev->cursor ); \
+#define NormalCursor() do { \
+ dev->cursor = LoadCursor( NULL, IDC_ARROW ); \
+ SetClassLongPtr( dev->hwnd, GCL_HCURSOR, (LONG_PTR) dev->cursor ); \
SetCursor( dev->cursor ); } while ( 0 )
-#define BusyCursor() do { \
- dev->cursor = LoadCursor( NULL, IDC_WAIT ); \
- SetClassLong( dev->hwnd, GCL_HCURSOR, (long) dev->cursor ); \
+#define BusyCursor() do { \
+ dev->cursor = LoadCursor( NULL, IDC_WAIT ); \
+ SetClassLongPtr( dev->hwnd, GCL_HCURSOR, (LONG_PTR) dev->cursor ); \
SetCursor( dev->cursor ); } while ( 0 )
#define PopupPrint 0x08A1
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|