From: <arj...@us...> - 2010-06-30 09:57:59
|
Revision: 11084 http://plplot.svn.sourceforge.net/plplot/?rev=11084&view=rev Author: arjenmarkus Date: 2010-06-30 09:57:53 +0000 (Wed, 30 Jun 2010) Log Message: ----------- Adopt the proposed changes by Alessandro Piras. Verified that they worked with gcc on a 32-bits Windows system. (If it turns out that the two functions are not available on older platforms, then we can easily fix that via a suitable macro. In all likelihood, this solves the issue for both 32-bits and 64-bits systems.) Modified Paths: -------------- trunk/drivers/wingcc.c Modified: trunk/drivers/wingcc.c =================================================================== --- trunk/drivers/wingcc.c 2010-06-30 00:01:10 UTC (rev 11083) +++ trunk/drivers/wingcc.c 2010-06-30 09:57:53 UTC (rev 11084) @@ -256,7 +256,7 @@ } else { - pls = (PLStream *) GetWindowLong( hwnd, GWL_USERDATA ); /* Try to get the address to pls for this window */ + pls = (PLStream *) GetWindowLongPtr( hwnd, GWL_USERDATA ); /* Try to get the address to pls for this window */ if ( pls ) /* If we got it, then we will initialise this windows plplot private data area */ { dev = (wingcc_Dev *) pls->dev; @@ -561,7 +561,7 @@ * process this window */ - SetWindowLong( dev->hwnd, GWL_USERDATA, (long) pls ); + SetWindowLongPtr( dev->hwnd, GWL_USERDATA, (LONG_PTR) pls ); dev->SCRN_hdc = dev->hdc = GetDC( dev->hwnd ); /* This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |