Explorar o código

* turn off threadvars in softfpu if threading is not enabled

git-svn-id: trunk@23258 -
florian %!s(int64=12) %!d(string=hai) anos
pai
achega
e6f2c8cbd3
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      rtl/inc/mathh.inc

+ 5 - 1
rtl/inc/mathh.inc

@@ -47,7 +47,11 @@ Software IEC/IEEE floating-point rounding mode.
     float_round_up           = 2;
     float_round_up           = 2;
     float_round_to_zero      = 3;
     float_round_to_zero      = 3;
 
 
-threadvar
+{$ifdef FPC_HAS_FEATURE_THREADING}
+ThreadVar
+{$else FPC_HAS_FEATURE_THREADING}
+Var
+{$endif FPC_HAS_FEATURE_THREADING}
   softfloat_exception_mask : Byte;
   softfloat_exception_mask : Byte;
   softfloat_exception_flags : Byte;
   softfloat_exception_flags : Byte;
   softfloat_rounding_mode : Byte;
   softfloat_rounding_mode : Byte;