Thanks Atul, I'll incorporate this into the next wcecompat release.

Steven

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Atul Prakash
Sent: Monday, 23 December 2002 6:41 AM
To: [EMAIL PROTECTED]
Subject: Openssl-0.9.7-beta6/wcecompat on Pocket PC 2002 -- problem with
time.h


The  "struct tm" structure is  defined in wcecompat/include/time.h as 
well as in "Windows CE Tools\wce300\Pocket Pc 
2002\mfc\include\wcealt.h". That gives problems in compiling some 
openssl programs that use MFC includes as well as wcecompat includes. 
Perhaps, the wcecompat's time.h should be the following, so that the 
struct tm is not declared twice.


#ifndef _TM_DEFINED
#define _TM_DEFINED
struct tm {
        int tm_sec;     /* seconds after the minute - [0,59] */
        int tm_min;     /* minutes after the hour - [0,59] */
        int tm_hour;    /* hours since midnight - [0,23] */
        int tm_mday;    /* day of the month - [1,31] */
        int tm_mon;     /* months since January - [0,11] */
        int tm_year;    /* years since 1900 */
        int tm_wday;    /* days since Sunday - [0,6] */
        int tm_yday;    /* days since January 1 - [0,365] */
        int tm_isdst;   /* daylight savings time flag */
        };
#endif // _TM_DEFINED

Note that wcealt.h uses _TM_DEFINED to avoid redeclaration.

-- Atul
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to