00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033 #ifndef _ANI_CONFIG_H_
00034 #define _ANI_CONFIG_H_
00035
00036
00037
00038 #include <syn/synDefines.h>
00039
00040 #ifdef _DEBUG
00041 # define ANI_DEBUG
00042 #else
00043 # define ANI_OPT
00044 #endif
00045
00046 #ifdef WIN32
00047
00048 #define WIN32_LEAN_AND_MEAN
00049
00050
00051 #pragma warning(disable:4786)
00052
00053 #include <windows.h>
00054
00055
00056 #endif
00057
00058
00059
00060
00061 #ifdef __cplusplus
00062 #include <iostream>
00063 #include <iomanip>
00064 #include <fstream>
00065 #include <vector>
00066 #include <map>
00067 #include <string>
00068 #include <algorithm>
00069 #include <math.h>
00070
00071 #endif
00072
00073 #ifdef HAVE_UNISTD_H
00074 #include <unistd.h>
00075 #endif
00076
00077 #ifdef HAVE_STRINGS_H
00078 #include <strings.h>
00079 #endif
00080
00081
00082
00083
00084
00085
00086
00087 #ifdef WIN32
00088
00089 # if defined(__GNUC__)
00090 # undef _declspec
00091 # define _declspec(x) __declspec(x)
00092 # endif
00093
00094 # define ANI_EXPORT(__type) _declspec(dllexport) __type
00095 # define ANI_EXPORT_CLASS _declspec(dllexport)
00096 # define ANI_EXPORT_DATA(__type) _declspec(dllexport) __type
00097 # define ANI_IMPORT(__type) _declspec(dllimport) __type
00098 # define ANI_IMPORT_DATA(__type) _declspec(dllimport) __type
00099 # define ANI_IMPORT_CLASS _declspec(dllimport)
00100
00101 # define ANI_EXTERN(__type) extern _declspec(dllexport) __type
00102 # define ANI_IMPLEMENT(__type) _declspec(dllexport) __type
00103 # define ANI_EXTERN_DATA(__type) extern _declspec(dllexport) __type
00104 # define ANI_IMPLEMENT_DATA(__type) _declspec(dllexport) __type
00105
00106 # define ANI_CALLBACK
00107 # define ANI_CALLBACK_DECL
00108 # define ANI_STATIC_CALLBACK(__x) static __x
00109
00110 #else
00111
00112 # define ANI_EXPORT(__type) __type
00113 # define ANI_EXPORT_CLASS
00114 # define ANI_EXPORT_DATA(__type) __type
00115 # define ANI_IMPORT(__type) __type
00116 # define ANI_IMPORT_CLASS
00117 # define ANI_IMPORT_DATA(__type) __type
00118
00119 # define ANI_EXTERN(__type) extern __type
00120 # define ANI_IMPLEMENT(__type) __type
00121 # define ANI_EXTERN_DATA(__type) extern __type
00122 # define ANI_IMPLEMENT_DATA(__type) __type
00123
00124 # define ANI_CALLBACK
00125 # define ANI_CALLBACK_DECL
00126 # define ANI_STATIC_CALLBACK(__x) static __x
00127
00128 #endif
00129
00130 #ifdef _ANI_BUILD_
00131 # define ANI_API(__type) ANI_EXPORT(__type)
00132 # define ANI_CLASS_API ANI_EXPORT_CLASS
00133 # define ANI_DATA_API(__type) ANI_EXPORT_DATA(__type)
00134 #else
00135 # define ANI_API(__type) ANI_IMPORT(__type)
00136 # define ANI_CLASS_API ANI_IMPORT_CLASS
00137 # define ANI_DATA_API(__type) ANI_IMPORT_DATA(__type)
00138 #endif
00139
00140 #endif