|
WizardsToolkit
1.0.7
|
00001 /* 00002 Copyright 1999-2011 ImageMagick Studio LLC, a non-profit organization 00003 dedicated to making software imaging solutions freely available. 00004 00005 You may not use this file except in compliance with the License. 00006 obtain a copy of the License at 00007 00008 http://www.wizards-toolkit.org/WizardsToolkit/script/license.php 00009 00010 Unless required by applicable law or agreed to in writing, software 00011 distributed under the License is distributed on an "AS IS" BASIS, 00012 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 See the License for the specific language governing permissions and 00014 limitations under the License. 00015 00016 Wizard's Toolkit Interface declarations. 00017 */ 00018 00019 #ifndef _WIZARDSTOOLKIT_H 00020 #define _WIZARDSTOOLKIT_H 00021 00022 #if defined(__cplusplus) || defined(c_plusplus) 00023 extern "C" { 00024 #endif 00025 00026 #if defined(WIN32) || defined(WIN64) 00027 # define WIZARDSTOOLKIT_WINDOWS_SUPPORT 00028 #else 00029 # define WIZARDSTOOLKIT_POSIX_SUPPORT 00030 #endif 00031 00032 #if !defined(_WIZARDSTOOLKIT_CONFIG_H) 00033 # define _WIZARDSTOOLKIT_CONFIG_H 00034 # if !defined(vms) && !defined(macintosh) 00035 # include "wizard/wizard-config.h" 00036 # else 00037 # include "wizard-config.h" 00038 # endif 00039 #if defined(_wizardstoolkit_const) && !defined(const) 00040 # define const _wizardstoolkit_const 00041 #endif 00042 #if defined(_wizardstoolkit_inline) && !defined(inline) 00043 # define inline _wizardstoolkit_inline 00044 #endif 00045 # if defined(_wizardstoolkit_restrict) && !defined(restrict) 00046 # define restrict _wizardstoolkit_restrict 00047 # endif 00048 # if defined(__cplusplus) || defined(c_plusplus) 00049 # undef inline 00050 # endif 00051 #endif 00052 00053 #include <stdio.h> 00054 #include <sys/types.h> 00055 00056 #if defined(WIZARDSTOOLKIT_WINDOWS_SUPPORT) || defined(__CYGWIN__) || defined(__MINGW32__) 00057 # define WizardPrivate 00058 # if defined(_MT) && defined(_DLL) && !defined(_WIZARDDLL_) && !defined(_LIB) 00059 # define _WIZARDDLL_ 00060 # endif 00061 # if defined(_WIZARDDLL_) 00062 # if defined(_VISUALC_) 00063 # pragma warning( disable: 4273 ) /* Disable the dll linkage warnings */ 00064 # endif 00065 # if !defined(_WIZARDLIB_) 00066 # if defined(__GNUC__) 00067 # define WizardExport __attribute__ ((dllimport)) 00068 # else 00069 # define WizardExport __declspec(dllimport) 00070 # endif 00071 # if defined(_VISUALC_) 00072 # pragma message( "Wizard lib DLL import interface" ) 00073 # endif 00074 # else 00075 # if defined(__GNUC__) 00076 # define WizardExport __attribute__ ((dllexport)) 00077 # else 00078 # define WizardExport __declspec(dllexport) 00079 # endif 00080 # if defined(_VISUALC_) 00081 # pragma message( "Wizard lib DLL export interface" ) 00082 # endif 00083 # endif 00084 # else 00085 # define WizardExport 00086 # if defined(_VISUALC_) 00087 # pragma message( "Wizard lib static interface" ) 00088 # endif 00089 # endif 00090 00091 # if defined(_DLL) && !defined(_LIB) 00092 # define ModuleExport __declspec(dllexport) 00093 # if defined(_VISUALC_) 00094 # pragma message( "Wizard module DLL export interface" ) 00095 # endif 00096 # else 00097 # define ModuleExport 00098 # if defined(_VISUALC_) 00099 # pragma message( "Wizard module static interface" ) 00100 # endif 00101 00102 # endif 00103 # define WizardGlobal __declspec(thread) 00104 # if defined(_VISUALC_) 00105 # pragma warning(disable : 4018) 00106 # pragma warning(disable : 4244) 00107 # pragma warning(disable : 4142) 00108 # pragma warning(disable : 4800) 00109 # pragma warning(disable : 4786) 00110 # endif 00111 #else 00112 # if __GNUC__ >= 4 00113 # define WizardExport __attribute__ ((visibility ("default"))) 00114 # define WizardPrivate __attribute__ ((visibility ("hidden"))) 00115 # else 00116 # define WizardExport 00117 # define WizardPrivate 00118 # endif 00119 # define ModuleExport WizardExport 00120 # define WizardGlobal 00121 #endif 00122 00123 #if !defined(MaxTextExtent) 00124 # define MaxTextExtent 4096 00125 #endif 00126 #define WizardSignature 0xabacadabUL 00127 00128 #if !defined(wizard_attribute) 00129 # if !defined(__GNUC__) 00130 # define wizard_attribute(x) /* nothing */ 00131 # else 00132 # define wizard_attribute __attribute__ 00133 # endif 00134 #endif 00135 00136 #if defined(WizardMethodPrefix) 00137 # include "wizard/methods.h" 00138 #endif 00139 #include "wizard/wizard-type.h" 00140 #include "wizard/string_.h" 00141 #include "wizard/authenticate.h" 00142 #include "wizard/blob.h" 00143 #include "wizard/bzip.h" 00144 #include "wizard/cipher.h" 00145 #include "wizard/client.h" 00146 #include "wizard/configure.h" 00147 #include "wizard/entropy.h" 00148 #include "wizard/exception.h" 00149 #include "wizard/file.h" 00150 #include "wizard/hash.h" 00151 #include "wizard/hashmap.h" 00152 #include "wizard/key.h" 00153 #include "wizard/keyring.h" 00154 #include "wizard/locale_.h" 00155 #include "wizard/log.h" 00156 #include "wizard/magick.h" 00157 #include "wizard/memory_.h" 00158 #include "wizard/mime.h" 00159 #include "wizard/option.h" 00160 #include "wizard/passphrase.h" 00161 #include "wizard/resource_.h" 00162 #include "wizard/semaphore.h" 00163 #include "wizard/secret.h" 00164 #include "wizard/splay-tree.h" 00165 #include "wizard/timer.h" 00166 #include "wizard/token.h" 00167 #include "wizard/utility.h" 00168 #include "wizard/version.h" 00169 #include "wizard/wizard.h" 00170 #include "wizard/xml-tree.h" 00171 #include "wizard/zip.h" 00172 00173 #if defined(__cplusplus) || defined(c_plusplus) 00174 } 00175 #endif 00176 00177 #endif