Browse Source

* floating point exceptions were enabled.

git-svn-id: trunk@1409 -
yury 20 years ago
parent
commit
a5f134ba25
1 changed files with 3 additions and 0 deletions
  1. 3 0
      rtl/wince/system.pp

+ 3 - 0
rtl/wince/system.pp

@@ -1599,6 +1599,7 @@ end;
 
 
 function _getstdfilex(fd: integer): pointer; cdecl; external 'coredll';
 function _getstdfilex(fd: integer): pointer; cdecl; external 'coredll';
 function _fileno(fd: pointer): THandle; cdecl; external 'coredll';
 function _fileno(fd: pointer): THandle; cdecl; external 'coredll';
+function _controlfp(new: DWORD; mask: DWORD): DWORD; cdecl; external 'coredll';
 
 
 procedure SysInitStdIO;
 procedure SysInitStdIO;
 begin
 begin
@@ -1641,6 +1642,8 @@ const
 begin
 begin
   StackLength := InitialStkLen;
   StackLength := InitialStkLen;
   StackBottom := Sptr - StackLength;
   StackBottom := Sptr - StackLength;
+  { Enable FPU exceptions }
+  _controlfp(1, $0008001F);
   { some misc stuff }
   { some misc stuff }
   hprevinst:=0;
   hprevinst:=0;
   if not IsLibrary then
   if not IsLibrary then