Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Changes for compiling in Delphi XE8, 2010 and 6 #1

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Changes for compiling in Delphi XE8, 2010 and 6 #1

wants to merge 8 commits into from

Conversation

Midiar
Copy link

@Midiar Midiar commented Aug 4, 2015

I propose these changes. The first 2 commits, for XE8 and D2010, are obvious.

The third commit, for D6, may be controversial, since I "ifdef away" any generics/class constructor/delayed code, and just lock the timezone to be local (+02:00 here in Norway in the summer) when using that Delphi version (or rather any version below D2010).
(I could have chosen the UTC timezone for D6 (resulting in a single Z at the end of the time string). Or, it seems that I get no timezone info at all in the DelphiDateTimeToISO8601Date result string when requesting a non-existent timezone name. But I thought maybe the local timezone would be the best compromise.)
I hope this is acceptable as a graceful degradation when generics/class constructors are not available.

::tor

Tor Helland and others added 8 commits June 5, 2018 15:54
A record and function were not defined in Windows.h for Windows 2010.
D6 does not have UInt64. Using Int64Rec instead.
D6 does not have class constructor or generics. Falls back to only using local time zone.
alex-ilin pushed a commit to alex-ilin/superobject that referenced this pull request Sep 6, 2019
Improved Delpi version handling
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants