diff --git a/src/lib/xmp/xmp.pas b/src/lib/xmp/xmp.pas
index 2f48d07482c2ef9141d4bfd73e7d632091b833c1..7f790ed20c4874147fc717e363856a9bf4979750 100644 (file)
--- a/src/lib/xmp/xmp.pas
+++ b/src/lib/xmp/xmp.pas
{$MODE OBJFPC}
{$ENDIF}
{$MODE OBJFPC}
{$ENDIF}
-{$IFDEF WINDOWS}
- {$IFNDEF LIBXMP_WINDOZE_STATIC}
+{$IF DEFINED(WINDOWS)}
+ {$IFDEF LIBXMP_WINDOZE_STATIC}
+ {$IFDEF USE_XMP_LITE}
+ {$LINKLIB libxmp-lite.a}
+ {$ELSE}
+ {$LINKLIB libxmp.a}
+ {$ENDIF}
+ {$ELSE}
{$DEFINE XMP_DYNAMIC}
{$DEFINE XMP_DYNAMIC}
+ {$IFDEF USE_XMP_LITE}
+ const xmplib = 'libxmp-lite.dll';
+ {$ELSE}
+ const xmplib = 'libxmp.dll';
+ {$ENDIF}
{$ENDIF}
{$ENDIF}
-{$ENDIF}
-
-{$IF DEFINED(XMP_DYNAMIC)}
-const
-{$IF DEFINED(WINDOWS)}
- xmplib = 'libxmp-lite.dll';
{$ELSEIF DEFINED(UNIX)}
{$ELSEIF DEFINED(UNIX)}
- xmplib = 'libxmp-lite.so';
-{$ELSE}
- {$MESSAGE ERROR 'XMP_DYNAMIC not supported'}
-{$IFEND}
+ {$DEFINE XMP_DYNAMIC}
+ {$IFDEF USE_XMP_LITE}
+ const xmplib = 'libxmp-lite.so';
+ {$ELSE}
+ const xmplib = 'libxmp.so';
+ {$ENDIF}
{$ELSE}
{$ELSE}
- {$LINKLIB xmp-lite}
+ {$ERROR libxmp not supported on this platform. Fix it!}
{$ENDIF}
const
{$ENDIF}
const
- XMP_VER_STRING = '4.5.0';
- XMP_VER_CODE = $040500;
+ XMP_VER_STRING = '4.4.1';
+ XMP_VER_CODE = $040401;
XMP_VER_MAJOR = 4;
XMP_VER_MAJOR = 4;
- XMP_VER_MINOR = 5;
- XMP_VER_RELEASE = 0;
+ XMP_VER_MINOR = 4;
+ XMP_VER_RELEASE = 1;
const
XMP_NAME_SIZE = 64; (* Size of module name and type *)
const
XMP_NAME_SIZE = 64; (* Size of module name and type *)