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
uses
{$ifdef unix}
{$if defined(UNIX) and not defined(OPENBSD)}
clocale, // needed to initialize default locale settings on Linux.
{$endif}
Classes, SysUtils, Controls, LCLType, Graphics, Math, Buttons,
ExtCtrls, Forms, ComCtrls, Types, LMessages, LazUTF8, LCLIntf,
LCLProc, Themes, CalControlWrapper;
Types, Classes, SysUtils, Math,
// LCL
LCLType, LCLIntf, LMessages, Controls, Graphics, Buttons, ExtCtrls, Forms, ComCtrls,
Themes,
// LazUtils
LazUTF8, LazMethodList,
// DateTimeCtrls
CalControlWrapper;
const
{ 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}
uses
SysUtils, Math, strutils, DateUtils, {$IFDEF UNIX}CLocale,{$ENDIF}
Classes, TypInfo, MaskUtils, Variants, DB, DOM, XMLWrite, XMLRead, XMLConf,
Controls, Forms, Dialogs, Menus, Graphics, LCLProc, LCLType, LCLIntf,
Printers, osPrinters,
{$if defined(UNIX) and not defined(OPENBSD)}
CLocale,
{$endif}
Classes, TypInfo, SysUtils, Math, StrUtils, DateUtils,
MaskUtils, Variants, DB, DOM, XMLWrite, XMLRead, XMLConf,
// LCL
LCLType, LCLIntf, Controls, Forms, Dialogs, Menus, Graphics, Printers,
// LazUtils
LazFileUtils, LazUTF8,
LazFileUtils, LazUTF8, LazLoggerBase,
// IDEIntf
PropEdits,
// LazReport

View File

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