delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:date:from:to:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; q=dns; s= | |
default; b=X4RxRE2JqvVr0GF+duti62MRb0adPLuY1OfIcYN3X7wi7mQUXHjpc | |
xuZ7g0a3kOtmtOnLZQqeLzbxHBH2k4kbOKC3b4+kt4wI9OquUvZVn0ji/LmBxzVB | |
/GOqc3H3A0ZAzbvdLN8hYiwamA1EANzOUGo43pjEWepmrgNvqqcj6o= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:date:from:to:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; s=default; | |
bh=7KD8j+QcKy2B2kG3p7a08/N5+ok=; b=PiHkh+r0t1Rk4lNA0/I/HKLj8rHe | |
1Pw13O/NwQ+ygW0Wd4U711HtxT0QzD7wayZ3h/YrWL5wNej014fqkV3xWEjIMfJx | |
E3s43QengglGGs1P1fLT0cjjD6fbJRLLfyQ9vb1cMkScEcufeGfds8RTDblGNYJx | |
1pjMOHfa80Fr6Jo= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Authentication-Results: | sourceware.org; auth=none |
X-Virus-Found: | No |
X-Spam-SWARE-Status: | No, score=-5.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 |
X-HELO: | calimero.vinschen.de |
Date: | Tue, 4 Mar 2014 09:19:28 +0100 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: struct tm problem |
Message-ID: | <20140304081928.GF7236@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <CAJoYywWqyBYEJKriugeU0deHm=DsS_LYgHotaX6K=q6TO_tmQQ AT mail DOT gmail DOT com> |
MIME-Version: | 1.0 |
In-Reply-To: | <CAJoYywWqyBYEJKriugeU0deHm=DsS_LYgHotaX6K=q6TO_tmQQ@mail.gmail.com> |
User-Agent: | Mutt/1.5.21 (2010-09-15) |
--924gEkU1VlJlwnwX Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mar 3 23:28, Irfan Adilovic wrote: > (Please note the date of the quoted emails) >=20 > On Mon, May 23, 2005 at 07:58:01PM -0700, Yitzchak Scott-Thoennes wrote: > > On Mon, May 23, 2005 at 06:34:21PM +0430, Alireza Ghasemi wrote: > > > Hello, > > > I have downloaded some c++ libraries and tried to download them.But A= ll of > > > them give an error like : > > > "'struct tm' has no member called 'tm_gmtoff'" > > > (tm is defined as 'time_t t; time(&t);tm* ptm =3D localtime(&t);') > > > I guess that tm should be defined in ctime header. > > > What's the problem and what should I do? > > > Thanks > > > > tm_gmtoff is not required by the standard: > > http://www.opengroup.org/onlinepubs/009695399/basedefs/time.h.html > > > > However, it is an extension available in the Olson tzcode, which > > cygwin seems to use. Enabling it would seem to be a matter of > > setting -DTM_GMTOFF=3Dtm_gmtoff and adding it to time.h. And same for TM_ZONE. > I have successfully done this and use the tm_gmtoff in my code > actively. Is there a reason this isn't enabled? Is there any interest > in the community to make tm_gmtoff available by default (It's so easy, > it's a shame it's not :-))? It's easy to change the struct, but changing the size of a structure is an incompatible change to existing applications which leads to overwriting memory. A change to Cygwin involves an extra check if the application has been build against an older or a newer version of Cygwin, and to fill the tm_gmtoff/tm_zone structure members dependent on that. So it's not just done by defining TM_GMTOFF and TM_ZONE. http://cygwin.com/acronyms/#SHTDI I'll put this on my TODO list, but if somebody want's to take a stab at it, feel free. Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --924gEkU1VlJlwnwX Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJTFYyQAAoJEPU2Bp2uRE+gzZYP/R32ZSiwYUgRqlvE2bvqeKCC 1k6CBKjFH3cxXglpsdY4ARdnRTURYQhawgGOCCFEGRdJo0BdUw/nJHvcPGLjblJ0 /dVo7SxIDSqdRKYxixqRhaUFkFadcfnE+rxuHA/nL8WcmZVuC8sx+F0C7/AdCqkh SIcoaInKwC0GzzyB9YUlirBjoYSR7dBNXCwnOfcP2//PzdkvtiLeACYRuHIGf60t lCA0J8qI156xwJRHejlhjFgWILa6d4oazLek/HjG3rwuYuGxYgUswg6Cjkm8mmDr 5kIYQ/ymj+UEoJ+BsT2sdqIHpGNl6cMJnmONoO/9j2pt0+VG8ACzx3bL96pdyMvH UIIlgfrNDekqv7Yxom13C6DZpUIK6fdblMUN7d5DS+mwcYKsHZPrh2JddZUo4eij 1e3zUBvXD0Ld/1JHWoFOp5A+tpf/vNcCithXRPGjl9EArf7mPfpFMVnV5FJ5B/R1 D9hHOechxnwahHc0Ds6PaStBE6j6GJVMeKfU3svo7+iU274HOqupXYq120ji88a7 8FexVazqGB7h5ZNs0BHhjHg00zOOHLdoCkyKfGfbPwCZrTJWbaoxdPMdASbIk76b kWScGMJJfjX2UJshr0rMBSZxF9BYftbKf0D4wJ6hKJkHo9qJP0419iNjuhYnaZ9x pM3qeIwi2uEOQUEWOsC2 =d58E -----END PGP SIGNATURE----- --924gEkU1VlJlwnwX--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |