 |
MagickWand 6.9.6
|
Loading...
Searching...
No Matches
18#ifndef MAGICKWAND_METHOD_ATTRIBUTE_H
19#define MAGICKWAND_METHOD_ATTRIBUTE_H
21#if defined(__cplusplus) || defined(c_plusplus)
28# define MAGICKCORE_MODULES_SUPPORT
29# undef MAGICKCORE_BUILD_MODULES
32#if defined(MAGICKWAND_WINDOWS_SUPPORT) && !defined(__CYGWIN__)
34# if defined(_MT) && defined(_DLL) && !defined(_MAGICKDLL_) && !defined(_LIB)
37# if defined(_MAGICKDLL_)
38# if defined(_VISUALC_)
39# pragma warning( disable: 4273 )
41# if !defined(_MAGICKLIB_)
42# if defined(__clang__) || defined(__GNUC__)
43# define WandExport __attribute__ ((dllimport))
45# define WandExport __declspec(dllimport)
48# if defined(__clang__) || defined(__GNUC__)
49# define WandExport __attribute__ ((dllexport))
51# define WandExport __declspec(dllexport)
57# if defined(_VISUALC_)
58# pragma warning(disable : 4018)
59# pragma warning(disable : 4068)
60# pragma warning(disable : 4244)
61# pragma warning(disable : 4142)
62# pragma warning(disable : 4800)
63# pragma warning(disable : 4786)
64# pragma warning(disable : 4996)
67# if defined(__clang__) || (__GNUC__ >= 4)
68# define WandExport __attribute__ ((visibility ("default")))
69# define WandPrivate __attribute__ ((visibility ("hidden")))
76#define WandSignature 0xabacadabUL
77#if !defined(MaxTextExtent)
78# define MaxTextExtent 4096
81#if defined(MAGICKCORE_HAVE___ATTRIBUTE__)
82# define wand_aligned(x) __attribute__((aligned(x)))
83# define wand_attribute __attribute__
84# define wand_unused(x) wand_unused_ ## x __attribute__((unused))
85# define wand_unreferenced(x)
86#elif defined(MAGICKWAND_WINDOWS_SUPPORT) && !defined(__CYGWIN__)
87# define wand_aligned(x) __declspec(align(x))
88# define wand_attribute(x)
89# define wand_unused(x) x
90# define wand_unreferenced(x) (x)
92# define wand_aligned(x)
93# define wand_attribute(x)
94# define wand_unused(x) x
95# define wand_unreferenced(x)
98#if !defined(__clang__) && (defined(__GNUC__) && (__GNUC__) > 4)
99# define wand_alloc_size(x) __attribute__((__alloc_size__(x)))
100# define wand_alloc_sizes(x,y) __attribute__((__alloc_size__(x,y)))
102# define wand_alloc_size(x)
103# define wand_alloc_sizes(x,y)
106#if !defined(__clang__) && (defined(__GNUC__) && (__GNUC__) > 4)
107# define wand_cold_spot __attribute__((__cold__))
108# define wand_hot_spot __attribute__((__hot__))
110# define wand_cold_spot
111# define wand_hot_spot
114#if defined(__cplusplus) || defined(c_plusplus)