浏览代码

+ CODESET for solaris

git-svn-id: trunk@4335 -
Jonas Maebe 19 年之前
父节点
当前提交
2b98aa8005
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      rtl/unix/cwstring.pp

+ 4 - 0
rtl/unix/cwstring.pp

@@ -75,8 +75,12 @@ const
 {$ifdef FreeBSD} // actually FreeBSD5. internationalisation is afaik not default on 4.
   CODESET = 0;
 {$else freebsd}
+{$ifdef solaris}
+  CODESET=49;
+{$else}
 {$error lookup the value of CODESET in /usr/include/langinfo.h for your OS }
 // and while doing it, check if iconv is in libc, and if the symbols are prefixed with iconv_ or libiconv_
+{$endif solaris}
 {$endif FreeBSD}
 {$endif darwin}
 {$endif linux}