]> git.saurik.com Git - wxWidgets.git/blob - src/tiff/port.h
compilation fix for HP-UX (at least version 11)
[wxWidgets.git] / src / tiff / port.h
1 /*
2 * Warning, this file was automatically created by the TIFF configure script
3 * Actually, it has been modified to use wxWidgets' values.
4 * VERSION: v3.5.2
5 * DATE: Son Nov 28 15:15:07 GMT 1999
6 * TARGET:
7 * CCOMPILER:
8 */
9 #ifndef _PORT_
10 #define _PORT_ 1
11
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15
16 #include "wx/setup.h"
17
18 /*
19 libtiff uses ulong_t and other things which are not defined in HP-UX headers
20 unless _INCLUDE_HPUX_SOURCE is defined and this, in turn, doesn't compile if
21 _INCLUDE_XOPEN_SOURCE is not defined, so define both of them (system headers
22 also use _INCLUDE_POSIX_SOURCE but it doesn't seem to be needed for now).
23 */
24 #ifdef __hpux
25 #define _INCLUDE_XOPEN_SOURCE
26 #define _INCLUDE_HPUX_SOURCE
27 #endif
28
29 #include <sys/types.h>
30 #define HOST_FILLORDER FILLORDER_LSB2MSB
31
32 /* wxWidgets defines WORDS_BIGENDIAN */
33 #ifdef WORDS_BIGENDIAN
34 #define HOST_BIGENDIAN 1
35 #else
36 #define HOST_BIGENDIAN 0
37 #endif
38
39 /* wxWidgets defines its own reading and writing routines */
40 /* #define HAVE_MMAP 1 */
41
42 #include <stdio.h>
43 #include <unistd.h>
44 #include <string.h>
45 #include <stdlib.h>
46 #include <fcntl.h>
47
48 typedef double dblparam_t;
49
50 #ifdef __STRICT_ANSI__
51 #define INLINE __inline__
52 #else
53 #define INLINE inline
54 #endif
55
56 #define GLOBALDATA(TYPE,NAME) extern TYPE NAME
57
58 /* wxWidgets defines wxUSE_LIBJPEG */
59 #if wxUSE_LIBJPEG
60 #define JPEG_SUPPORT
61 #endif
62
63 /* wxWidgets defines wxUSE_ZLIB */
64 #if wxUSE_ZLIB
65 #define ZIP_SUPPORT
66 #endif
67
68 #ifdef __cplusplus
69 }
70 #endif
71
72 #endif