X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Flib%2Fvampimg%2FImagingOptions.inc;h=deb21e4daa319be550bd5eca5ac6172887c28e6e;hb=ada62776e1c2db5a0107b2eed7a3cac72250aa43;hp=85653ad5397ba99846ca4821c1341b93e62c33a0;hpb=b128e0179e7e6ebaf38e02d80015e50fb4e34933;p=d2df-sdl.git diff --git a/src/lib/vampimg/ImagingOptions.inc b/src/lib/vampimg/ImagingOptions.inc index 85653ad..deb21e4 100644 --- a/src/lib/vampimg/ImagingOptions.inc +++ b/src/lib/vampimg/ImagingOptions.inc @@ -1,5 +1,3 @@ -{ $Id: ImagingOptions.inc 174 2009-09-08 09:37:59Z galfar $ } - { User Options Following defines and options can be changed by user. @@ -17,7 +15,7 @@ { $DEFINE IMAGING_DEBUG} // If defined, debug info, range/IO/overflow // checking, stack frames, assertions, and // other debugging options will be turned on. -{$DEFINE IMAGING_RELEASE} // If defined, all debug info is off. +{ $DEFINE IMAGING_RELEASE} // If defined, all debug info is off. @@ -36,6 +34,7 @@ {$DEFINE DONT_LINK_MNG} // link support for MNG images {$DEFINE DONT_LINK_JNG} // link support for JNG images //{$DEFINE DONT_LINK_PNM} // link support for PortableMap images (PBM, PGM, PPM, PAM, PFM) +{$DEFINE DONT_LINK_RADHDR} // link support for Radiance HDR/RGBE file format //{$DEFINE DONT_LINK_EXTRAS} // link support for file formats defined in // Extras package. Exactly which formats will be @@ -67,20 +66,12 @@ {$WRITEABLECONST OFF} // Writeable constants: off {$IFNDEF FPC} - {$DEFINE DCC} // if not using FPC then DCC compiler is used (Delphi/Kylix) + {$DEFINE DCC} // if not using FPC then DCC compiler is used (Delphi/BCB) // others are not supported {$ENDIF} {$IFDEF DCC} - {$IFDEF LINUX} - {$DEFINE KYLIX} // using Kylix - {$ENDIF} -{$ENDIF} - -{$IFDEF DCC} - {$IFNDEF KYLIX} - {$DEFINE DELPHI} // using Delphi - {$ENDIF} + {$DEFINE DELPHI} {$ENDIF} {$IF (Defined(DCC) and (CompilerVersion >= 18.5))} @@ -123,37 +114,64 @@ {$ENDIF} {$IFEND} +{$IF Defined (CPU86) and not Defined(CPUX86)} + {$DEFINE CPUX86} // Compatibility with Delphi +{$IFEND} + +{$IF Defined (CPUX86_64) and not Defined(CPUX64)} + {$DEFINE CPUX64} // Compatibility with Delphi +{$IFEND} + +{$IF Defined (DARWIN) and not Defined(MACOSX)} + {$DEFINE MACOS} // Compatibility with Delphi +{$IFEND} + +{$IF Defined(DCC) and (CompilerVersion < 23)} + {$DEFINE CPUX86} // Compatibility with older Delphi +{$IFEND} { Compiler capabilities } // Define if compiler supports inlining of functions and procedures -// Note that FPC inline support crashed in older versions (1.9.8) -{$IF (Defined(DCC) and (CompilerVersion >= 17)) or (Defined(FPC) and Defined(CPU86))} +{$IF (Defined(DCC) and (CompilerVersion >= 17)) or Defined(FPC)} {$DEFINE HAS_INLINE} {$IFEND} // Define if compiler supports advanced records with methods -{$IF (Defined(DCC) and (CompilerVersion >= 18)) } +{$IF (Defined(DCC) and (CompilerVersion >= 18)) or + (Defined(FPC) and (FPC_FULLVERSION >= 20600))} {$DEFINE HAS_ADVANCED_RECORDS} {$IFEND} // Define if compiler supports operator overloading -// (unfortunately Delphi and FPC operator overloaing is not compatible) -{$IF (Defined(DCC) and (CompilerVersion >= 18)) or Defined(FPC)} +// (unfortunately Delphi and FPC operator overloading is not compatible). +// FPC supports Delphi compatible operator overloads since 2.6.0 +{$IF (Defined(DCC) and (CompilerVersion >= 18)) or + (Defined(FPC) and (FPC_FULLVERSION >= 20600))} {$DEFINE HAS_OPERATOR_OVERLOADING} {$IFEND} +// Anonymous methods +{$IF Defined(DCC) and (CompilerVersion >= 20) } + {$DEFINE HAS_ANON_METHODS} +{$IFEND} + +// Generic types (Delphi and FPC implementations incompatible). +// Update: FPC supports Delphi compatible generics since 2.6.0 +{$IF (Defined(DCC) and (CompilerVersion >= 20)) or + (Defined(FPC) and (FPC_FULLVERSION >= 20600))} + {$DEFINE HAS_GENERICS} +{$IFEND} + { Imaging options check} {$IFNDEF HAS_INLINE} {$UNDEF USE_INLINE} {$ENDIF} -{$IFDEF FPC} - {$IFNDEF CPU86} - {$UNDEF USE_ASM} - {$ENDIF} -{$ENDIF} +{$IF not Defined(CPUX86)} + {$UNDEF USE_ASM} +{$IFEND} {$IFDEF FPC} {$DEFINE COMPONENT_SET_LCL} @@ -167,13 +185,9 @@ { Platform options } -{$IFDEF WIN32} +{$IF Defined(WIN32) or Defined(WIN64)} {$DEFINE MSWINDOWS} -{$ENDIF} - -{$IFDEF DPMI} - {$DEFINE MSDOS} -{$ENDIF} +{$IFEND} {$IFDEF LINUX} {$DEFINE UNIX} @@ -188,7 +202,6 @@ {$GOTO ON} // alow goto {$PACKRECORDS 8} // same as ALING 8 for Delphi {$PACKENUM 4} // Min enum size: 4 B - {$CALLING REGISTER} // default calling convention is register {$IFDEF CPU86} {$ASMMODE INTEL} // intel assembler mode {$ENDIF} @@ -198,7 +211,6 @@ {$INLINE ON} // turns inlining on for compilers that support it {$ENDIF} - {$WARNINGS OFF} {$HINTS OFF} {$NOTES OFF}