瀏覽代碼

* Avoid using volatile if NO_THREADING is defined

git-svn-id: trunk@47624 -
michael 4 年之前
父節點
當前提交
ece9c98362
共有 1 個文件被更改,包括 4 次插入1 次删除
  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
           synchronised from the thread that wrote them; the critical section there
           acts as a read/write barrier }
           acts as a read/write barrier }
         ReadBarrier;
         ReadBarrier;
-
+{$ifdef NO_THREADING}
+      Args.Add('-Fl'+FCachedlibcPath);
+{$ELSE}      
       Args.Add('-Fl'+volatile(FCachedlibcPath));
       Args.Add('-Fl'+volatile(FCachedlibcPath));
+{$ENDIF}      
     end;
     end;
 
 
   // Custom options which are added by dependencies
   // Custom options which are added by dependencies