cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1 | /* |
| 2 | Copyright 1999-2009 ImageMagick Studio LLC, a non-profit organization |
| 3 | dedicated to making software imaging solutions freely available. |
| 4 | |
| 5 | You may not use this file except in compliance with the License. |
| 6 | obtain a copy of the License at |
| 7 | |
| 8 | http://www.imagemagick.org/script/license.php |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | |
| 16 | MagickCore Application Programming Interface declarations. |
| 17 | */ |
| 18 | |
| 19 | #ifndef _MAGICKCORE_CORE_H |
| 20 | #define _MAGICKCORE_CORE_H |
| 21 | |
| 22 | #if defined(__cplusplus) || defined(c_plusplus) |
| 23 | extern "C" { |
| 24 | #endif |
| 25 | |
| 26 | #if !defined(_MAGICKCORE_CONFIG_H) |
| 27 | # define _MAGICKCORE_CONFIG_H |
| 28 | # if !defined(vms) && !defined(macintosh) |
| 29 | # include "magick/magick-config.h" |
| 30 | # else |
| 31 | # include "magick-config.h" |
| 32 | # endif |
| 33 | #if defined(_magickcore_const) && !defined(const) |
| 34 | # define const _magickcore_const |
| 35 | #endif |
| 36 | #if defined(_magickcore_inline) && !defined(inline) |
| 37 | # define inline _magickcore_inline |
| 38 | #endif |
| 39 | # if defined(__cplusplus) || defined(c_plusplus) |
| 40 | # undef inline |
| 41 | # endif |
| 42 | #endif |
| 43 | |
| 44 | #include <stdio.h> |
| 45 | #include <stdarg.h> |
| 46 | #include <stdlib.h> |
| 47 | #include <sys/types.h> |
| 48 | |
| 49 | #if defined(__CYGWIN32__) |
| 50 | # if !defined(__CYGWIN__) |
| 51 | # define __CYGWIN__ __CYGWIN32__ |
| 52 | # endif |
| 53 | #endif |
| 54 | |
| 55 | #if defined(_WIN32) || defined(WIN32) |
| 56 | # if !defined(__WINDOWS__) |
| 57 | # if defined(_WIN32) |
| 58 | # define __WINDOWS__ _WIN32 |
| 59 | # else |
| 60 | # if defined(WIN32) |
| 61 | # define __WINDOWS__ WIN32 |
| 62 | # endif |
| 63 | # endif |
| 64 | # endif |
| 65 | #endif |
| 66 | |
| 67 | #if defined(_WIN64) || defined(WIN64) |
| 68 | # if !defined(__WINDOWS__) |
| 69 | # if defined(_WIN64) |
| 70 | # define __WINDOWS__ _WIN64 |
| 71 | # else |
| 72 | # if !defined(WIN64) |
| 73 | # define __WINDOWS__ WIN64 |
| 74 | # endif |
| 75 | # endif |
| 76 | # endif |
| 77 | #endif |
| 78 | |
| 79 | #if defined(__WINDOWS__) |
| 80 | # if defined(_MT) && defined(_DLL) && !defined(_MAGICKDLL_) && !defined(_LIB) && !defined(MAGICK_STATIC_LINK) |
| 81 | # define _MAGICKDLL_ |
| 82 | # endif |
| 83 | # if defined(_MAGICKDLL_) |
| 84 | # if defined(_VISUALC_) |
| 85 | # pragma warning( disable: 4273 ) /* Disable the dll linkage warnings */ |
| 86 | # endif |
| 87 | # if !defined(_MAGICKLIB_) |
| 88 | # define MagickExport __declspec(dllimport) |
| 89 | # if defined(_VISUALC_) |
| 90 | # pragma message( "Magick lib DLL import interface" ) |
| 91 | # endif |
| 92 | # else |
| 93 | # define MagickExport __declspec(dllexport) |
| 94 | # if defined(_VISUALC_) |
| 95 | # pragma message( "Magick lib DLL export interface" ) |
| 96 | # endif |
| 97 | # endif |
| 98 | # else |
| 99 | # define MagickExport |
| 100 | # if defined(_VISUALC_) |
| 101 | # pragma message( "Magick lib static interface" ) |
| 102 | # endif |
| 103 | # endif |
| 104 | |
| 105 | # if defined(_DLL) && !defined(_LIB) |
| 106 | # define ModuleExport __declspec(dllexport) |
| 107 | # if defined(_VISUALC_) |
| 108 | # pragma message( "Magick module DLL export interface" ) |
| 109 | # endif |
| 110 | # else |
| 111 | # define ModuleExport |
| 112 | # if defined(_VISUALC_) |
| 113 | # pragma message( "Magick module static interface" ) |
| 114 | # endif |
| 115 | |
| 116 | # endif |
| 117 | # define MagickGlobal __declspec(thread) |
| 118 | # if defined(_VISUALC_) |
| 119 | # pragma warning(disable : 4018) |
| 120 | # pragma warning(disable : 4244) |
| 121 | # pragma warning(disable : 4142) |
| 122 | # pragma warning(disable : 4800) |
| 123 | # pragma warning(disable : 4786) |
| 124 | # pragma warning(disable : 4996) |
| 125 | # endif |
| 126 | #else |
| 127 | # define MagickExport |
| 128 | # define ModuleExport |
| 129 | # define MagickGlobal |
| 130 | #endif |
| 131 | |
| 132 | #if !defined(MaxTextExtent) |
| 133 | # define MaxTextExtent 4096 |
| 134 | #endif |
| 135 | #define MagickSignature 0xabacadabUL |
| 136 | |
| 137 | #if !defined(magick_attribute) |
| 138 | # if !defined(__GNUC__) |
| 139 | # define magick_attribute(x) /* nothing */ |
| 140 | # else |
| 141 | # define magick_attribute __attribute__ |
| 142 | # endif |
| 143 | #endif |
| 144 | |
| 145 | #if defined(MAGICKCORE_NAMESPACE_PREFIX) |
| 146 | # include "magick/methods.h" |
| 147 | #endif |
| 148 | #include "magick/magick-type.h" |
| 149 | #include "magick/animate.h" |
| 150 | #include "magick/annotate.h" |
| 151 | #include "magick/artifact.h" |
cristy | 5a2ca48 | 2009-10-14 18:24:56 +0000 | [diff] [blame] | 152 | #include "magick/attribute.h" |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 153 | #include "magick/blob.h" |
| 154 | #include "magick/cache.h" |
| 155 | #include "magick/cache-view.h" |
| 156 | #include "magick/cipher.h" |
| 157 | #include "magick/client.h" |
| 158 | #include "magick/coder.h" |
| 159 | #include "magick/color.h" |
| 160 | #include "magick/colorspace.h" |
cristy | 316d517 | 2009-09-17 19:31:25 +0000 | [diff] [blame] | 161 | #include "magick/colormap.h" |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 162 | #include "magick/compare.h" |
| 163 | #include "magick/composite.h" |
| 164 | #include "magick/compress.h" |
| 165 | #include "magick/configure.h" |
| 166 | #include "magick/constitute.h" |
| 167 | #include "magick/decorate.h" |
| 168 | #include "magick/delegate.h" |
| 169 | #include "magick/deprecate.h" |
| 170 | #include "magick/display.h" |
| 171 | #include "magick/distort.h" |
| 172 | #include "magick/draw.h" |
| 173 | #include "magick/effect.h" |
| 174 | #include "magick/enhance.h" |
| 175 | #include "magick/exception.h" |
| 176 | #include "magick/fourier.h" |
| 177 | #include "magick/fx.h" |
| 178 | #include "magick/gem.h" |
| 179 | #include "magick/geometry.h" |
| 180 | #include "magick/hashmap.h" |
| 181 | #include "magick/histogram.h" |
| 182 | #include "magick/identify.h" |
| 183 | #include "magick/image.h" |
| 184 | #include "magick/layer.h" |
| 185 | #include "magick/list.h" |
| 186 | #include "magick/locale_.h" |
| 187 | #include "magick/log.h" |
| 188 | #include "magick/magic.h" |
| 189 | #include "magick/magick.h" |
| 190 | #include "magick/matrix.h" |
| 191 | #include "magick/memory_.h" |
| 192 | #include "magick/module.h" |
| 193 | #include "magick/mime.h" |
| 194 | #include "magick/monitor.h" |
| 195 | #include "magick/montage.h" |
| 196 | #include "magick/option.h" |
| 197 | #include "magick/paint.h" |
| 198 | #include "magick/pixel.h" |
| 199 | #include "magick/policy.h" |
| 200 | #include "magick/prepress.h" |
| 201 | #include "magick/profile.h" |
| 202 | #include "magick/property.h" |
| 203 | #include "magick/quantize.h" |
| 204 | #include "magick/quantum.h" |
| 205 | #include "magick/registry.h" |
| 206 | #include "magick/random_.h" |
| 207 | #include "magick/resample.h" |
| 208 | #include "magick/resize.h" |
| 209 | #include "magick/resource_.h" |
| 210 | #include "magick/segment.h" |
| 211 | #include "magick/shear.h" |
| 212 | #include "magick/signature.h" |
| 213 | #include "magick/splay-tree.h" |
| 214 | #include "magick/stream.h" |
| 215 | #include "magick/statistic.h" |
| 216 | #include "magick/string_.h" |
| 217 | #include "magick/timer.h" |
| 218 | #include "magick/token.h" |
| 219 | #include "magick/transform.h" |
| 220 | #include "magick/threshold.h" |
| 221 | #include "magick/type.h" |
| 222 | #include "magick/utility.h" |
| 223 | #include "magick/version.h" |
| 224 | #include "magick/xml-tree.h" |
| 225 | #include "magick/xwindow.h" |
| 226 | |
| 227 | #if defined(__cplusplus) || defined(c_plusplus) |
| 228 | } |
| 229 | #endif |
| 230 | |
| 231 | #endif |