Disable CLocale in OpenBSD, it is broken there. Order used units. Issue #39368.

This commit is contained in:
Juha 2021-09-26 10:38:09 +03:00
parent 869f59b3f0
commit 8985175dd5
3 changed files with 18 additions and 10 deletions

View File

@ -42,12 +42,17 @@ unit DateTimePicker;
interface interface
uses uses
{$ifdef unix} {$if defined(UNIX) and not defined(OPENBSD)}
clocale, // needed to initialize default locale settings on Linux. clocale, // needed to initialize default locale settings on Linux.
{$endif} {$endif}
Classes, SysUtils, Controls, LCLType, Graphics, Math, Buttons, Types, Classes, SysUtils, Math,
ExtCtrls, Forms, ComCtrls, Types, LMessages, LazUTF8, LCLIntf, // LCL
LCLProc, Themes, CalControlWrapper; LCLType, LCLIntf, LMessages, Controls, Graphics, Buttons, ExtCtrls, Forms, ComCtrls,
Themes,
// LazUtils
LazUTF8, LazMethodList,
// DateTimeCtrls
CalControlWrapper;
const const
{ We will deal with the NullDate value the special way. It will be especially { We will deal with the NullDate value the special way. It will be especially

View File

@ -15,12 +15,15 @@ interface
{$I LR_Vers.inc} {$I LR_Vers.inc}
uses uses
SysUtils, Math, strutils, DateUtils, {$IFDEF UNIX}CLocale,{$ENDIF} {$if defined(UNIX) and not defined(OPENBSD)}
Classes, TypInfo, MaskUtils, Variants, DB, DOM, XMLWrite, XMLRead, XMLConf, CLocale,
Controls, Forms, Dialogs, Menus, Graphics, LCLProc, LCLType, LCLIntf, {$endif}
Printers, osPrinters, Classes, TypInfo, SysUtils, Math, StrUtils, DateUtils,
MaskUtils, Variants, DB, DOM, XMLWrite, XMLRead, XMLConf,
// LCL
LCLType, LCLIntf, Controls, Forms, Dialogs, Menus, Graphics, Printers,
// LazUtils // LazUtils
LazFileUtils, LazUTF8, LazFileUtils, LazUTF8, LazLoggerBase,
// IDEIntf // IDEIntf
PropEdits, PropEdits,
// LazReport // LazReport

View File

@ -50,7 +50,7 @@ uses
{$IFDEF IDE_MEM_CHECK} {$IFDEF IDE_MEM_CHECK}
MemCheck, MemCheck,
{$ENDIF} {$ENDIF}
{$IF defined(Unix)} {$IF defined(Unix) and not defined(OPENBSD)}
clocale, clocale,
{$IFEND} {$IFEND}
SysUtils, SysUtils,