浏览代码

* support FPCDATE include

git-svn-id: trunk@2263 -
peter 19 年之前
父节点
当前提交
a5f659b982
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      compiler/scanner.pas

+ 3 - 0
compiler/scanner.pas

@@ -1460,6 +1460,9 @@ compile time variables as the old format (0/1), continue to work.
            else
             if hs='FPCVERSION' then
              hs:=version_string
+           else
+            if hs='FPCDATE' then
+             hs:=date_string
            else
             if hs='FPCTARGET' then
              hs:=target_cpu_string