Browse Source

* turn off threadvars in softfpu if threading is not enabled

git-svn-id: trunk@23258 -
florian 12 years ago
parent
commit
e6f2c8cbd3
1 changed files with 5 additions and 1 deletions
  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;