|
From: <arj...@us...> - 2010-10-03 13:40:47
|
Revision: 11243
http://plplot.svn.sourceforge.net/plplot/?rev=11243&view=rev
Author: arjenmarkus
Date: 2010-10-03 13:40:40 +0000 (Sun, 03 Oct 2010)
Log Message:
-----------
Add support for (very) old version of Windows SDK - alias for SetWindowLongPtr and GetWindowLongPtr
Modified Paths:
--------------
trunk/drivers/wingcc.c
Modified: trunk/drivers/wingcc.c
===================================================================
--- trunk/drivers/wingcc.c 2010-10-03 13:08:26 UTC (rev 11242)
+++ trunk/drivers/wingcc.c 2010-10-03 13:40:40 UTC (rev 11243)
@@ -256,6 +256,9 @@
}
else
{
+#ifndef _WIN64
+#define GetWindowLongPtr GetWindowLong
+#endif
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 */
{
@@ -561,7 +564,12 @@
* process this window
*/
+#ifdef _WIN64
SetWindowLongPtr( dev->hwnd, GWL_USERDATA, (LONG_PTR) pls );
+#else
+ SetWindowLong( dev->hwnd, GWL_USERDATA, (LONG) pls );
+#endif
+
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.
|