source: trunk/src/3rdparty/patches/libtiff-3.8.2-config.patch@ 753

Last change on this file since 753 was 2, checked in by Dmitry A. Kuminov, 16 years ago

Initially imported qt-all-opensource-src-4.5.1 from Trolltech.

File size: 10.2 KB
  • libtiff/tif_config.h

     
     1/*
     2  Configuration defines by Trolltech.
     3*/
     4
     5#include <qglobal.h>
     6#if defined(Q_OS_WINCE)
     7# include <qfunctions_wince.h>
     8#endif
     9
     10/* Support CCITT Group 3 & 4 algorithms */
     11#define CCITT_SUPPORT 1
     12
     13/* Pick up YCbCr subsampling info from the JPEG data stream to support files
     14   lacking the tag (default enabled). */
     15#define CHECK_JPEG_YCBCR_SUBSAMPLING 1
     16
     17/* Support C++ stream API (requires C++ compiler) */
     18/* #undef CXX_SUPPORT */
     19
     20/* Treat extra sample as alpha (default enabled). The RGBA interface will
     21   treat a fourth sample with no EXTRASAMPLE_ value as being ASSOCALPHA. Many
     22   packages produce RGBA files but don't mark the alpha properly. */
     23#define DEFAULT_EXTRASAMPLE_AS_ALPHA 1
     24
     25/* Use the Apple OpenGL framework. */
     26/* #undef HAVE_APPLE_OPENGL_FRAMEWORK */
     27
     28/* Define to 1 if you have the <assert.h> header file. */
     29#define HAVE_ASSERT_H 1
     30
     31/* Define to 1 if you have the <dlfcn.h> header file. */
     32/* #undef HAVE_DLFCN_H */
     33
     34/* Define to 1 if you have the <fcntl.h> header file. */
     35#if !defined(Q_OS_WINCE)
     36#define HAVE_FCNTL_H 1
     37#endif
     38
     39/* Define to 1 if you have the `floor' function. */
     40/* #undef HAVE_FLOOR */
     41
     42/* Define to 1 if you have the `getopt' function. */
     43/* #undef HAVE_GETOPT */
     44
     45/* Define as 0 or 1 according to the floating point format suported by the
     46   machine */
     47#define HAVE_IEEEFP 1
     48
     49/* Define to 1 if the system has the type `int16'. */
     50/* #undef HAVE_INT16 */
     51#ifdef Q_OS_AIX
     52#define HAVE_INT16 1
     53#endif
     54
     55/* Define to 1 if the system has the type `int32'. */
     56/* #undef HAVE_INT32 */
     57#ifdef Q_OS_AIX
     58#define HAVE_INT32 1
     59#endif
     60
     61/* Define to 1 if the system has the type `int8'. */
     62/* #undef HAVE_INT8 */
     63#ifdef Q_OS_AIX
     64#define HAVE_INT8 1
     65#endif
     66
     67/* Define to 1 if you have the <inttypes.h> header file. */
     68/* #undef HAVE_INTTYPES_H */
     69
     70/* Define to 1 if you have the `isascii' function. */
     71/* #undef HAVE_ISASCII */
     72
     73/* Define to 1 if you have the `lfind' function. */
     74/* #undef HAVE_LFIND */
     75
     76/* Define to 1 if you have the `c' library (-lc). */
     77/* #undef HAVE_LIBC */
     78
     79/* Define to 1 if you have the `m' library (-lm). */
     80/* #undef HAVE_LIBM */
     81
     82/* Define to 1 if you have the <limits.h> header file. */
     83/* #undef HAVE_LIMITS_H */
     84
     85/* Define to 1 if you have the <malloc.h> header file. */
     86/* #undef HAVE_MALLOC_H */
     87
     88/* Define to 1 if you have the `memmove' function. */
     89/* #undef HAVE_MEMMOVE */
     90
     91/* Define to 1 if you have the <memory.h> header file. */
     92/* #undef HAVE_MEMORY_H */
     93
     94/* Define to 1 if you have the `memset' function. */
     95/* #undef HAVE_MEMSET */
     96
     97/* Define to 1 if you have the `mmap' function. */
     98/* #undef HAVE_MMAP */
     99
     100/* Define to 1 if you have the `pow' function. */
     101/* #undef HAVE_POW */
     102
     103/* Define if you have POSIX threads libraries and header files. */
     104/* #undef HAVE_PTHREAD */
     105
     106/* Define to 1 if you have the <search.h> header file. */
     107#if !defined(Q_OS_WINCE)
     108#define HAVE_SEARCH_H 1
     109#endif
     110
     111/* Define to 1 if you have the `sqrt' function. */
     112/* #undef HAVE_SQRT */
     113
     114/* Define to 1 if you have the <stdint.h> header file. */
     115/* #undef HAVE_STDINT_H */
     116
     117/* Define to 1 if you have the <stdlib.h> header file. */
     118/* #undef HAVE_STDLIB_H */
     119
     120/* Define to 1 if you have the `strcasecmp' function. */
     121/* #undef HAVE_STRCASECMP */
     122
     123/* Define to 1 if you have the `strchr' function. */
     124/* #undef HAVE_STRCHR */
     125
     126/* Define to 1 if you have the <strings.h> header file. */
     127/* #undef HAVE_STRINGS_H */
     128
     129/* Define to 1 if you have the <string.h> header file. */
     130#define HAVE_STRING_H 1
     131
     132/* Define to 1 if you have the `strrchr' function. */
     133/* #undef HAVE_STRRCHR */
     134
     135/* Define to 1 if you have the `strstr' function. */
     136/* #undef HAVE_STRSTR */
     137
     138/* Define to 1 if you have the `strtol' function. */
     139/* #undef HAVE_STRTOL */
     140
     141/* Define to 1 if you have the `strtoul' function. */
     142/* #undef HAVE_STRTOUL */
     143
     144/* Define to 1 if you have the <sys/stat.h> header file. */
     145/* #undef HAVE_SYS_STAT_H */
     146
     147/* Define to 1 if you have the <sys/time.h> header file. */
     148/* #undef HAVE_SYS_TIME_H */
     149
     150/* Define to 1 if you have the <sys/types.h> header file. */
     151#define HAVE_SYS_TYPES_H 1
     152
     153/* Define to 1 if you have the <unistd.h> header file. */
     154#define HAVE_UNISTD_H 1
     155
     156/* Define to 1 if you have the <windows.h> header file. */
     157/* #undef HAVE_WINDOWS_H */
     158#ifdef Q_OS_WIN
     159#define TIF_PLATFORM_CONSOLE
     160#endif
     161
     162/* Native cpu byte order: 1 if big-endian (Motorola) or 0 if little-endian
     163   (Intel) */
     164#if (Q_BYTE_ORDER == Q_BIG_ENDIAN)
     165#define HOST_BIGENDIAN 1
     166#else
     167#define HOST_BIGENDIAN 0
     168#endif
     169
     170/* Set the native cpu bit order (FILLORDER_LSB2MSB or FILLORDER_MSB2LSB) */
     171#define HOST_FILLORDER FILLORDER_LSB2MSB
     172
     173/* Support JPEG compression (requires IJG JPEG library) */
     174/* #undef JPEG_SUPPORT */
     175
     176/* Support LogLuv high dynamic range encoding */
     177#define LOGLUV_SUPPORT 1
     178
     179/* Define to the sub-directory in which libtool stores uninstalled libraries.
     180   */
     181/* #undef LT_OBJDIR */
     182
     183/* Support LZW algorithm */
     184#define LZW_SUPPORT 1
     185
     186/* Support Microsoft Document Imaging format */
     187#define MDI_SUPPORT 1
     188
     189/* Support NeXT 2-bit RLE algorithm */
     190#define NEXT_SUPPORT 1
     191
     192/* Define to 1 if your C compiler doesn't accept -c and -o together. */
     193/* #undef NO_MINUS_C_MINUS_O */
     194
     195/* Support Old JPEG compresson (read contrib/ojpeg/README first! Compilation
     196   fails with unpatched IJG JPEG library) */
     197/* #undef OJPEG_SUPPORT */
     198
     199/* Name of package */
     200/* #undef PACKAGE */
     201
     202/* Define to the address where bug reports for this package should be sent. */
     203/* #undef PACKAGE_BUGREPORT */
     204
     205/* Define to the full name of this package. */
     206/* #undef PACKAGE_NAME */
     207
     208/* Define to the full name and version of this package. */
     209/* #undef PACKAGE_STRING */
     210
     211/* Define to the one symbol short name of this package. */
     212/* #undef PACKAGE_TARNAME */
     213
     214/* Define to the version of this package. */
     215/* #undef PACKAGE_VERSION */
     216
     217/* Support Macintosh PackBits algorithm */
     218#define PACKBITS_SUPPORT 1
     219
     220/* Support Pixar log-format algorithm (requires Zlib) */
     221#define PIXARLOG_SUPPORT 1
     222
     223/* Define to necessary symbol if this constant uses a non-standard name on
     224   your system. */
     225/* #undef PTHREAD_CREATE_JOINABLE */
     226
     227/* The size of a `int', as computed by sizeof. */
     228#define SIZEOF_INT 4
     229
     230/* The size of a `long', as computed by sizeof. */
     231#if (QT_POINTER_SIZE == 8) && !defined(Q_OS_WIN64)
     232#define SIZEOF_LONG 8
     233#else
     234#define SIZEOF_LONG 4
     235#endif
     236
     237/* Define to 1 if you have the ANSI C header files. */
     238/* #undef STDC_HEADERS */
     239
     240/* Support strip chopping (whether or not to convert single-strip uncompressed
     241   images to mutiple strips of specified size to reduce memory usage) */
     242#define STRIPCHOP_DEFAULT TIFF_STRIPCHOP
     243
     244/* Default size of the strip in bytes (when strip chopping enabled) */
     245/* #undef STRIP_SIZE_DEFAULT */
     246
     247/* Enable SubIFD tag (330) support */
     248#define SUBIFD_SUPPORT 1
     249
     250/* Support ThunderScan 4-bit RLE algorithm */
     251#define THUNDER_SUPPORT 1
     252
     253/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
     254/* #undef TIME_WITH_SYS_TIME */
     255
     256/* Define to 1 if your <sys/time.h> declares `struct tm'. */
     257/* #undef TM_IN_SYS_TIME */
     258
     259/* Version number of package */
     260/* #undef VERSION */
     261
     262/* Define to 1 if your processor stores words with the most significant byte
     263   first (like Motorola and SPARC, unlike Intel and VAX). */
     264#if (Q_BYTE_ORDER == Q_BIG_ENDIAN)
     265#define WORDS_BIGENDIAN 1
     266#else
     267/* #undef WORDS_BIGENDIAN */
     268#endif
     269
     270/* Define to 1 if the X Window System is missing or not being used. */
     271/* #undef X_DISPLAY_MISSING */
     272
     273/* Support Deflate compression */
     274#define ZIP_SUPPORT 1
     275
     276/* Number of bits in a file offset, on hosts where this is settable. */
     277/* #undef _FILE_OFFSET_BITS */
     278
     279/* Define for large files, on AIX-style hosts. */
     280/* #undef _LARGE_FILES */
     281
     282/* Define to empty if `const' does not conform to ANSI C. */
     283/* #undef const */
     284
     285/* Define to `__inline__' or `__inline' if that's what the C compiler
     286   calls it, or to nothing if 'inline' is not supported under any name.  */
     287#ifndef __cplusplus
     288#undef inline
     289#define inline
     290#endif
     291
     292/* Define to `long' if <sys/types.h> does not define. */
     293/* #undef off_t */
     294
     295/* Define to `unsigned' if <sys/types.h> does not define. */
     296/* #undef size_t */
  • libtiff/tiffconf.h

     
    1 /* libtiff/tiffconf.h.  Generated by configure.  */
    21/*
    3   Configuration defines for installed libtiff.
     2  Configuration defines by Trolltech.
    43  This file maintained for backward compatibility. Do not use definitions
    54  from this file in your programs.
    65*/
     
    87#ifndef _TIFFCONF_
    98#define _TIFFCONF_
    109
     10#include <qglobal.h>
     11
    1112/* Define to 1 if the system has the type `int16'. */
    1213/* #undef HAVE_INT16 */
    1314
     
    2122#define SIZEOF_INT 4
    2223
    2324/* The size of a `long', as computed by sizeof. */
     25#if (QT_POINTER_SIZE == 8) && !defined(Q_OS_WIN64)
     26#define SIZEOF_LONG 8
     27#else
    2428#define SIZEOF_LONG 4
     29#endif
    2530
    2631/* Compatibility stuff. */
    2732
     
    3439
    3540/* Native cpu byte order: 1 if big-endian (Motorola) or 0 if little-endian
    3641   (Intel) */
     42#if (Q_BYTE_ORDER == Q_BIG_ENDIAN)
     43#define HOST_BIGENDIAN 1
     44#else
    3745#define HOST_BIGENDIAN 0
     46#endif
    3847
    3948/* Support CCITT Group 3 & 4 algorithms */
    4049#define CCITT_SUPPORT 1
    4150
    4251/* Support JPEG compression (requires IJG JPEG library) */
    43 #define JPEG_SUPPORT 1
     52/* #undef JPEG_SUPPORT */
    4453
    4554/* Support LogLuv high dynamic range encoding */
    4655#define LOGLUV_SUPPORT 1
  • libtiff/tiffiop.h

     
    3737#endif
    3838
    3939#ifdef HAVE_SYS_TYPES_H
     40#if !defined(Q_OS_WINCE)
    4041# include <sys/types.h>
     42#else
     43# include <windows.h>
     44# include <types.h>
     45#endif
    4146#endif
    4247
    4348#ifdef HAVE_STRING_H
  • libtiff/tif_win32.c

     
    2929 * Scott Wagner (wagner@itek.com), Itek Graphix, Rochester, NY USA
    3030 */
    3131#include "tiffiop.h"
     32#include <windows.h>
    3233
    3334static tsize_t
    3435_tiffReadProc(thandle_t fd, tdata_t buf, tsize_t size)
Note: See TracBrowser for help on using the repository browser.