summaryrefslogtreecommitdiff
path: root/libgtk_kylix/GTKForms.pas
diff options
context:
space:
mode:
Diffstat (limited to 'libgtk_kylix/GTKForms.pas')
-rw-r--r--libgtk_kylix/GTKForms.pas5
1 files changed, 5 insertions, 0 deletions
diff --git a/libgtk_kylix/GTKForms.pas b/libgtk_kylix/GTKForms.pas
index 3b159de..7c01b58 100644
--- a/libgtk_kylix/GTKForms.pas
+++ b/libgtk_kylix/GTKForms.pas
@@ -218,6 +218,8 @@ function GetParentForm(Control: TGTKControl): TCustomGTKForm;
(********************************************************************************************************************************)
implementation
+uses Math;
+
constructor TGDKScreen.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
@@ -837,6 +839,9 @@ begin
end;
initialization
+ // Mask FPU exceptions that are redefined by Gtk+
+ // https://wiki.freepascal.org/SetExceptionMask
+ SetExceptionMask([exInvalidOp, exDenormalized, exZeroDivide, exOverflow, exUnderflow, exPrecision]);
Screen := TGDKScreen.Create(nil);
Application := TGTKApplication.Create(Screen);
finalization