Hi,

Arjen Markus wrote:

> I have found the same problem with setenv() and unsetenv() on my
> venerable platform (Windows XP, 32 bits, with MSVC 6.0). I will create
> a workaround using putenv(), because right now building PLplot stops
> on the QSAS test program.
>

In case you haven't created the work round (and apologies for not sending it 
earlier) please find a limited patch for implementing setenv for MSVC. 
 
This patch does not use CMake to configure the optional code instead relying on 
Compiler and in source Macros for configuration.

With this patch MSVC 2008 version of qsastime produces 


sizeof(time_t) = 8
sizeof(int) = 4
0xffff
Test 01 of calendar dates in the vicinity of the JD epoch

Start of Julian proleptic inner test
input and output (strfMJD) date/time
-4717-01-01T12:00:00.000000000000000Z
-4717-01-01T12:00:00.0Z
setFromUT JD =    -1826.0000000000000000 days
Start of Gregorian proleptic inner test
input and output (strftime), and output (strfMJD) date/time
-4717-01-01T12:00:00.000000000000000Z
setFromUT secs_past_epoch = -211021243200 seconds
my_timegm secs_past_epoch = -1 seconds
delta secs_past_epoch = -567845695 seconds
test failed with inconsistency between setFromUT and my_timegm



Terrence


      

Attachment: add_msvc_setenv.patch
Description: Binary data

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to