summaryrefslogtreecommitdiff
path: root/packages/regexpr
diff options
context:
space:
mode:
authorsvenbarth <svenbarth@3ad0048d-3df7-0310-abae-a5850022a9f2>2013-05-04 11:06:32 +0000
committersvenbarth <svenbarth@3ad0048d-3df7-0310-abae-a5850022a9f2>2013-05-04 11:06:32 +0000
commit586364bf46894a9b53db0bf7e159fbbb72deda69 (patch)
treeb73cfdb047cd6c8d021a64b84987373529209761 /packages/regexpr
parent3dac052f36c52c560b17fda603b284d324546403 (diff)
downloadfpc-586364bf46894a9b53db0bf7e159fbbb72deda69.tar.gz
Fix compilation of WinCE. Change the fixed UNICODE define of WinCE to FPC_OS_UNICODE, so that it won't be undefined when changing the mode/string type and that the usage of a UNICODE API is independant of the mode.
Also adjusted all Windows (Win32/64/CE) units to define a "UNICODE" if "FPC_OS_UNICODE" is defined (except the Jedi units). Also the common RTL units that checked for UNICODE now check for FPC_OS_UNICODE. git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@24420 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'packages/regexpr')
-rw-r--r--packages/regexpr/src/regexpr.pas3
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/regexpr/src/regexpr.pas b/packages/regexpr/src/regexpr.pas
index ed2aa17701..e267918248 100644
--- a/packages/regexpr/src/regexpr.pas
+++ b/packages/regexpr/src/regexpr.pas
@@ -83,6 +83,9 @@ interface
// ======== Define options for TRegExpr engine
{.$DEFINE UniCode} // Unicode support
+{$ifdef FPC_OS_UNICODE}
+ {$define UNICODE}
+{$endif}
{$DEFINE RegExpPCodeDump} // p-code dumping (see Dump method)
{$IFNDEF FPC} // the option is not supported in FreePascal
{$DEFINE reRealExceptionAddr} // exceptions will point to appropriate source line, not to Error procedure