This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

libf2c/7384: DATE_AND_TIME milliseconds field inactive on Windows


>Number:         7384
>Category:       libf2c
>Synopsis:       DATE_AND_TIME milliseconds field inactive on Windows
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jul 22 21:16:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Tim Prince
>Release:        gcc-3.1.1
>Organization:
>Environment:
Windows 2K et al
>Description:
As the current source depends on gettimeofday() to supply the milliseconds field for DATE_AND_TIME(), it is left zero on Windows.  Programs which require this information must use a C wrapper to call the Windows API GetLocalTime().
>How-To-Repeat:
Execute the u77-test.f program which is included in gcc-testsuite
>Fix:
Apply the attached patch to libf2c/libU77/datetime_.c, arrange that _WIN32 is pre-defined by gcc for the build of this directory (e.g. by including -mwin32 in CFLAGS when building under cygwin).  Note that [de]time_.c also look for _WIN32 to be pre-defined.
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="datetime.diff"; name="datetime.diff"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="datetime.diff"

KioqIC9ob21lL3RpbS9zcmMvZ2NjLTIwMDIwNDA4L2xpYmYyYy9saWJVNzcvZGF0ZXRpbWVfLmMJ
VHVlIEphbiAyMyAxNToyMDozMCAyMDAxCi0tLSBkYXRldGltZV8uYwlTYXQgSnVsIDIwIDEyOjA4
OjA4IDIwMDIKKioqKioqKioqKioqKioqIEJvc3RvbiwgTUEgMDIxMTEtMTMwNywgVVNBLiAgKi8K
KioqIDMyLDM1ICoqKioKLS0tIDMyLDQwIC0tLS0KICAjIGVuZGlmCiAgI2VuZGlmCisgI2lmIGRl
ZmluZWQgKF9XSU4zMik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kRBWQogICAgewotLS0gNzIsNzUgLS0tLQo=


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]