瀏覽代碼

* rtldefs.inc include file for embedded targets (forgot to commit earlier)

git-svn-id: branches/cpstrrtl@25009 -
Jonas Maebe 12 年之前
父節點
當前提交
2e9b642a3b
共有 2 個文件被更改,包括 30 次插入0 次删除
  1. 1 0
      .gitattributes
  2. 29 0
      rtl/embedded/rtldefs.inc

+ 1 - 0
.gitattributes

@@ -7662,6 +7662,7 @@ rtl/embedded/consoleio.pp svneol=native#text/pascal
 rtl/embedded/empty.cfg svneol=native#text/plain
 rtl/embedded/empty.cfg svneol=native#text/plain
 rtl/embedded/heapmgr.pp svneol=native#text/pascal
 rtl/embedded/heapmgr.pp svneol=native#text/pascal
 rtl/embedded/rtl.cfg svneol=native#text/plain
 rtl/embedded/rtl.cfg svneol=native#text/plain
+rtl/embedded/rtldefs.inc svneol=native#text/plain
 rtl/embedded/sysdir.inc svneol=native#text/plain
 rtl/embedded/sysdir.inc svneol=native#text/plain
 rtl/embedded/sysfile.inc svneol=native#text/plain
 rtl/embedded/sysfile.inc svneol=native#text/plain
 rtl/embedded/sysheap.inc svneol=native#text/plain
 rtl/embedded/sysheap.inc svneol=native#text/plain

+ 29 - 0
rtl/embedded/rtldefs.inc

@@ -0,0 +1,29 @@
+{
+    This file is part of the Free Pascal run time library.
+    Copyright (c) 2012 by Free Pascal development team
+
+    This file contains platform-specific defines that are used in
+    multiple RTL units.
+
+    See the file COPYING.FPC, included in this distribution,
+    for details about the copyright.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+ **********************************************************************}
+
+{ the single byte OS APIs always use UTF-8 }
+{ define FPCRTL_FILESYSTEM_UTF8}
+
+{ The OS supports a single byte file system operations API that we use }
+{$define FPCRTL_FILESYSTEM_SINGLE_BYTE_API}
+
+{ The OS supports a two byte file system operations API that we use }
+{ define FPCRTL_FILESYSTEM_TWO_BYTE_API}
+
+{ Use the shortstring version of do_getdir (should be converted to rawbytestring or
+  unicodestring for all but the OSes that don't support code pages and/or are
+  resource limited) }
+{$define FPCRTL_DO_GETDIR_SHORTSTRING}