Hi, Thanks for this patch. I will apply it. Is GCLP_HCURSOR also available under 32-bits?
Regards, Arjen -----Original Message----- From: Biswapriyo Nath <nathbap...@gmail.com> Sent: 28 March 2023 08:06 To: plplot-devel@lists.sourceforge.net Subject: [Plplot-devel] [PATCH] drivers/wingdi: Fix compiling in 64-bit Windows system Caution: This message was sent from outside of Deltares. Please do not click links or open attachments unless you recognize the source of this email and know the content is safe. Please report all suspicious emails to "servicedesk-...@deltares.nl" as an attachment. This replaces GCL_HCURSOR with GCLP_HCURSOR because the previous one is undefined in 64-bit Windows SDK and in mingw-w64 toolchain. Hence, fixes the following compiler error. plplot/drivers/wingdi.c: In function 'CrossHairCursor': plplot/drivers/wingdi.c:201:33: error: 'GCL_HCURSOR' undeclared (first use in this function); did you mean 'GCLP_HCURSOR'? 201 | SetClassLongPtr( dev->plot, GCL_HCURSOR, (long) cursor ); | ^~~~~~~~~~~ | GCLP_HCURSOR Signed-off-by: Biswapriyo Nath <nathbap...@gmail.com> --- drivers/wingdi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/wingdi.c b/drivers/wingdi.c index b81778a..6731ff6 100644 --- a/drivers/wingdi.c +++ b/drivers/wingdi.c @@ -198,7 +198,7 @@ CrossHairCursor( struct wingdi_Dev * dev ) HCURSOR cursor; cursor = LoadCursor( NULL, IDC_CROSS ); - SetClassLongPtr( dev->plot, GCL_HCURSOR, (long) cursor ); + SetClassLongPtr( dev->plot, GCLP_HCURSOR, (LONG_PTR) cursor ); return SetCursor( cursor ); } @@ -208,7 +208,7 @@ NormalCursor( struct wingdi_Dev * dev ) HCURSOR cursor; cursor = LoadCursor( NULL, IDC_ARROW ); - SetClassLongPtr( dev->plot, GCL_HCURSOR, (LONG_PTR) cursor ); + SetClassLongPtr( dev->plot, GCLP_HCURSOR, (LONG_PTR) cursor ); SetCursor( cursor ); } @@ -218,7 +218,7 @@ BusyCursor( struct wingdi_Dev * dev ) HCURSOR cursor; cursor = LoadCursor( NULL, IDC_WAIT ); - SetClassLongPtr( dev->plot, GCL_HCURSOR, (LONG_PTR) cursor ); + SetClassLongPtr( dev->plot, GCLP_HCURSOR, (LONG_PTR) cursor ); SetCursor( cursor ); } -- 2.40.0 _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.sourceforge.net%2Flists%2Flistinfo%2Fplplot-devel&data=05%7C01%7C%7Cc3a0fe55c1354907a80d08db2f529dde%7C15f3fe0ed7124981bc7cfe949af215bb%7C0%7C0%7C638155804121464716%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=pr0ioI2caWsjjXuw2YtowMrZ7QoX120llWaeWcOYtw4%3D&reserved=0 DISCLAIMER: This message is intended exclusively for the addressee(s) and may contain confidential and privileged information. If you are not the intended recipient please notify the sender immediately and destroy this message. Unauthorized use, disclosure or copying of this message is strictly prohibited. The foundation 'Stichting Deltares', which has its seat at Delft, The Netherlands, Commercial Registration Number 41146461, is not liable in any way whatsoever for consequences and/or damages resulting from the improper, incomplete and untimely dispatch, receipt and/or content of this e-mail. _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel