Renderer, ...: use PixelRect::GetCenter()
[xcsoar.git] / src / Terrain / jasper / jas_config2.h
blobcaf2f0ce446b4022a9b0c2608cba896550ca2b45
1 /*
2 * Copyright (c) 2002-2003 Michael David Adams.
3 * All rights reserved.
4 */
6 /* __START_OF_JASPER_LICENSE__
7 *
8 * JasPer License Version 2.0
9 *
10 * Copyright (c) 1999-2000 Image Power, Inc.
11 * Copyright (c) 1999-2000 The University of British Columbia
12 * Copyright (c) 2001-2003 Michael David Adams
14 * All rights reserved.
16 * Permission is hereby granted, free of charge, to any person (the
17 * "User") obtaining a copy of this software and associated documentation
18 * files (the "Software"), to deal in the Software without restriction,
19 * including without limitation the rights to use, copy, modify, merge,
20 * publish, distribute, and/or sell copies of the Software, and to permit
21 * persons to whom the Software is furnished to do so, subject to the
22 * following conditions:
24 * 1. The above copyright notices and this permission notice (which
25 * includes the disclaimer below) shall be included in all copies or
26 * substantial portions of the Software.
28 * 2. The name of a copyright holder shall not be used to endorse or
29 * promote products derived from the Software without specific prior
30 * written permission.
32 * THIS DISCLAIMER OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS
33 * LICENSE. NO USE OF THE SOFTWARE IS AUTHORIZED HEREUNDER EXCEPT UNDER
34 * THIS DISCLAIMER. THE SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS
35 * "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
36 * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
37 * PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN NO
38 * EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
39 * INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
40 * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
41 * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
42 * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. NO ASSURANCES ARE
43 * PROVIDED BY THE COPYRIGHT HOLDERS THAT THE SOFTWARE DOES NOT INFRINGE
44 * THE PATENT OR OTHER INTELLECTUAL PROPERTY RIGHTS OF ANY OTHER ENTITY.
45 * EACH COPYRIGHT HOLDER DISCLAIMS ANY LIABILITY TO THE USER FOR CLAIMS
46 * BROUGHT BY ANY OTHER ENTITY BASED ON INFRINGEMENT OF INTELLECTUAL
47 * PROPERTY RIGHTS OR OTHERWISE. AS A CONDITION TO EXERCISING THE RIGHTS
48 * GRANTED HEREUNDER, EACH USER HEREBY ASSUMES SOLE RESPONSIBILITY TO SECURE
49 * ANY OTHER INTELLECTUAL PROPERTY RIGHTS NEEDED, IF ANY. THE SOFTWARE
50 * IS NOT FAULT-TOLERANT AND IS NOT INTENDED FOR USE IN MISSION-CRITICAL
51 * SYSTEMS, SUCH AS THOSE USED IN THE OPERATION OF NUCLEAR FACILITIES,
52 * AIRCRAFT NAVIGATION OR COMMUNICATION SYSTEMS, AIR TRAFFIC CONTROL
53 * SYSTEMS, DIRECT LIFE SUPPORT MACHINES, OR WEAPONS SYSTEMS, IN WHICH
54 * THE FAILURE OF THE SOFTWARE OR SYSTEM COULD LEAD DIRECTLY TO DEATH,
55 * PERSONAL INJURY, OR SEVERE PHYSICAL OR ENVIRONMENTAL DAMAGE ("HIGH
56 * RISK ACTIVITIES"). THE COPYRIGHT HOLDERS SPECIFICALLY DISCLAIM ANY
57 * EXPRESS OR IMPLIED WARRANTY OF FITNESS FOR HIGH RISK ACTIVITIES.
59 * __END_OF_JASPER_LICENSE__
62 #ifndef JAS_CONFIG2_H
63 #define JAS_CONFIG2_H
66 * Configuration for Microsoft Windows and Microsoft Visual C.
68 * We are not using a configure-based build.
69 * Try to compensate for this here, by specifying the preprocessor symbols
70 * normally defined by configure.
73 #if !defined(_WIN32_WCE) || defined(__BORLANDC__) || defined(__GNUC__)
74 #ifndef uchar
75 #define uchar unsigned char
76 #endif
78 #ifndef longlong
79 #define longlong long long
80 #endif
82 #ifndef ulonglong
83 #define ulonglong unsigned long long
84 #endif
85 /*#define ssize_t int*/
86 #endif
88 #define HAVE_FCNTL_H 1
89 #define HAVE_LIMITS_H 1
91 #ifdef HAVE_MSVCRT
92 #define HAVE_IO_H 1
93 #endif
95 #ifdef WIN32
96 #define HAVE_WINDOWS_H 1
97 #endif
99 #define HAVE_SYS_TYPES_H 1
101 #if !defined(HAVE_STDLIB_H)
102 #define HAVE_STDLIB_H 1
103 #endif
105 #if !defined(HAVE_STDDEF_H)
106 #define HAVE_STDDEF_H 1
107 #endif
109 #define STDC_HEADERS 1
110 #define HAVE_STRING_H 1
111 #define HAVE_STRINGS_H 1
113 #define EXCLUDE_MIF_SUPPORT
114 #define EXCLUDE_PNM_SUPPORT
115 #define EXCLUDE_BMP_SUPPORT
116 #define EXCLUDE_RAS_SUPPORT
117 #define EXCLUDE_JPG_SUPPORT
118 #define EXCLUDE_PGX_SUPPORT
119 #define EXCLUDE_TIFF_SUPPORT
121 #endif