Explorar el Código

* Avoid using volatile if NO_THREADING is defined

git-svn-id: trunk@47624 -
michael hace 4 años
padre
commit
ece9c98362
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4 1
      packages/fpmkunit/src/fpmkunit.pp

+ 4 - 1
packages/fpmkunit/src/fpmkunit.pp

@@ -7116,8 +7116,11 @@ begin
           synchronised from the thread that wrote them; the critical section there
           acts as a read/write barrier }
         ReadBarrier;
-
+{$ifdef NO_THREADING}
+      Args.Add('-Fl'+FCachedlibcPath);
+{$ELSE}      
       Args.Add('-Fl'+volatile(FCachedlibcPath));
+{$ENDIF}      
     end;
 
   // Custom options which are added by dependencies