Explorar el Código

* turn off threadvars in softfpu if threading is not enabled

git-svn-id: trunk@23258 -
florian hace 12 años
padre
commit
e6f2c8cbd3
Se han modificado 1 ficheros con 5 adiciones y 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_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_flags : Byte;
   softfloat_rounding_mode : Byte;