Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make compile for XE8 & MacOS #3

Open
tueddy opened this issue Jul 23, 2015 · 0 comments
Open

Make compile for XE8 & MacOS #3

tueddy opened this issue Jul 23, 2015 · 0 comments

Comments

@tueddy
Copy link

tueddy commented Jul 23, 2015

Hello,

currently besen does not compile for XE8 & MacOS target.
Needed changes:

Besen.inc:
{$ifdef ver290} // XE8
{$define DelphiXE7}
{$define DelphiXEAndUp}
{$define DelphiXE2AndUp}
{$define DelphiXE3AndUp}
{$define DelphiXE4AndUp}
{$define DelphiXE5AndUp}
{$define DelphiXE6AndUp}
{$define DelphiXE7AndUp}
{$define Delphi2009AndUp}
{$endif}
{$ifdef ver300} // upcoming XE9
{$define DelphiXE7}
{$define DelphiXEAndUp}
{$define DelphiXE2AndUp}
{$define DelphiXE3AndUp}
{$define DelphiXE4AndUp}
{$define DelphiXE5AndUp}
{$define DelphiXE6AndUp}
{$define DelphiXE7AndUp}
{$define Delphi2009AndUp}
{$endif}

BesenLocale.pas for MacOS:

for i:= 1 to 12 do begin
BESENLocaleFormatSettings.ShortMonthNames[i]:={$ifdef DelphiXE2AndUp}SysUtils.FormatSettings.ShortMonthNames[i]{$else}SysUtils.ShortMonthNames[i]{$endif};
BESENLocaleFormatSettings.LongMonthNames[i]:={$ifdef DelphiXE2AndUp}SysUtils.FormatSettings.LongMonthNames[i]{$else}SysUtils.LongMonthNames[i]{$endif};
end;
for i:=1 to 7 do begin
BESENLocaleFormatSettings.ShortDayNames[i]:={$ifdef DelphiXE2AndUp}SysUtils.FormatSettings.ShortDayNames[i]{$else}SysUtils.ShortDayNames[i]{$endif};
BESENLocaleFormatSettings.LongDayNames[i]:={$ifdef DelphiXE2AndUp}SysUtils.FormatSettings.LongDayNames[i]{$else}SysUtils.LongDayNames[i]{$endif};
end;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant