aboutsummaryrefslogtreecommitdiffstats
path: root/src/ultrastardx.dpr
diff options
context:
space:
mode:
authortobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-10-20 09:58:54 +0000
committertobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-10-20 09:58:54 +0000
commitbeb06421d53294357184e8e761bf9fae10a0c4be (patch)
treedb440909e8e80b9a5de02abfd659829b7f7893cf /src/ultrastardx.dpr
parent5f6fc708b45e686ea03c5aa78ecdc72237121a4b (diff)
downloadusdx-beb06421d53294357184e8e761bf9fae10a0c4be.tar.gz
usdx-beb06421d53294357184e8e761bf9fae10a0c4be.tar.xz
usdx-beb06421d53294357184e8e761bf9fae10a0c4be.zip
FPC 2.2.2 compatibility. USDX crashed with an error in iconv_close. After disabling the cwstring unit everything works fine again. Drawback: WideUpperCase() as other unicode support does not work anymore (cwstring was a dummy in 2.2.0 so this is not a big deal).
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1462 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'src/ultrastardx.dpr')
-rw-r--r--src/ultrastardx.dpr4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ultrastardx.dpr b/src/ultrastardx.dpr
index df546274..979d4545 100644
--- a/src/ultrastardx.dpr
+++ b/src/ultrastardx.dpr
@@ -53,7 +53,9 @@ uses
{$IFDEF Unix}
cthreads, // THIS MUST be the first used unit in FPC if Threads are used!!
// (see http://wiki.lazarus.freepascal.org/Multithreaded_Application_Tutorial)
- {$IFNDEF DARWIN}
+ // cwstring crashes in FPC 2.2.2 so do not use the cwstring stuff
+ {.$IFNDEF DARWIN}
+ {$IFDEF NOIGNORE}
cwstring, // Enable Unicode support. MacOSX misses some references to iconv.
{$ENDIF}
{$ENDIF}