{$IF COMPILERVERSION >= 21.0}
// Define PCRE_STATICLINK to link the OBJ files with PCRE 7.9.
// This works correctly in all cases with Delphi 2010 (and later).
{$DEFINE PCRE_STATICLINK}
{$ELSE}
// Delphi 2009 and earlier have a compiler bug that may cause an internal error if install TPerlRegEx
// into a design time
package, and you don't put TPerlRegEx into a runtime
package at the same time.
// With Delphi 2009 and earlier you can use PCRE_STATICLINK if you don't use packages at all
// (which means you don't install it into the
IDE and you don't drop TPerlRegEx on a form)
// You can also use PCRE_STATICLINK if you put the component into a runtime
package
// Define PCRE_LINKDLL to use pcrelib.dll
{.$DEFINE PCRE_LINKDLL}
{$DEFINE PCRE_STATICLINK}
{$IFEND}