00001
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
00034
00035
00036
00037
00038 #ifndef FBXFILESDK_FBXFILESDK_DEF_H
00039 #define FBXFILESDK_FBXFILESDK_DEF_H
00040
00041 #include <stdlib.h>
00042 #include <stdio.h>
00043 #include <string.h>
00044 #include <ctype.h>
00045
00047
00048 #define FBXFILESDK_NAMESPACE_USE
00049
00050 #ifndef FBXFILESDK_NAMESPACE
00051 #ifdef FBXFILESDK_NAMESPACE_USE
00052 #define FBXFILESDK_NAMESPACE fbxsdk_00_Arsenal
00053 #else
00054 #define FBXFILESDK_NAMESPACE
00055 #endif
00056 #endif
00057
00059
00060 #include <fbxfilesdk/components/kbaselib/karch/arch.h>
00061 #include <fbxfilesdk/components/kbaselib/karch/types.h>
00062
00064
00065 #if defined(KFBX_DLLINFO) && defined(KARCH_ENV_WIN)
00066 #define KFBX_DLLIMPORT __declspec(dllimport)
00067 #define KFBX_DLLEXPORT __declspec(dllexport)
00068 #else
00069 #define KFBX_DLLIMPORT
00070 #define KFBX_DLLEXPORT
00071 #endif
00072
00073 #ifndef NULL
00074 #if defined __GNUG__ && (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 8))
00075 #define NULL (__null)
00076 #else
00077 #ifdef __cplusplus
00078 #define NULL 0
00079 #else
00080 #define NULL ((void *)0)
00081 #endif
00082 #endif
00083 #endif
00084
00085 #if !defined(_MAX_PATH)
00086 #define _MAX_PATH 1024
00087 #endif
00088
00089 #define KFBX_FORWARD( ClassName ) class ClassName; typedef ClassName *H##ClassName;
00090 #define KFBX_FORWARD_HI( ClassName ) class ClassName; typedef ClassName *H##ClassName; typedef H##ClassName HI##ClassName;
00091
00092 #define KFBX_SAFE_DELETE_PTR(p) { FbxSdkDelete(p); (p)=NULL; }
00093 #define KFBX_SAFE_DELETE_ARRAY_PTR(a) { FbxSdkDeleteArray(a); (a)=NULL; }
00094 #define KFBX_SAFE_DESTROY_OBJECT(p) if(p){ (p)->Destroy(); (p)=NULL; }
00095
00096 #ifdef KARCH_ENV_WIN
00097 #define snprintf _snprintf // for stdio.h platform compatibility
00098 #ifndef WIN32_LEAN_AND_MEAN
00099 #define WIN32_LEAN_AND_MEAN // Defined to speed up compilation
00100 #endif
00101 #endif
00102
00103 #if !defined(KARCH_DEV_MSC)
00104 #ifndef strcmpi
00105 #define strcmpi strcasecmp
00106 #endif
00107 #ifndef stricmp
00108 #define stricmp strcasecmp
00109 #endif
00110 #ifndef strncmpi
00111 #define strncmpi strncasecmp
00112 #endif
00113 #ifndef strnicmp
00114 #define strnicmp strncasecmp
00115 #endif
00116 #endif
00117
00118 #if defined(KARCH_ENV_LINUX)
00119 #include <malloc.h>
00120 #define _msize ((size_t(*)(void*))malloc_usable_size)
00121 #endif
00122
00123 #if defined(KARCH_ENV_MACOSX)
00124 #include <malloc/malloc.h>
00125 #define _msize ((size_t(*)(void*))malloc_size)
00126 #endif
00127
00129
00130 #ifdef KARCH_DEV_MSC
00131 #pragma warning(disable : 4251) //'identifier' : class 'type' needs to have dll-interface to be used by clients of class 'type2'
00132 #endif
00133
00134 #if defined(KARCH_DEV_GNUC) || defined(KARCH_DEV_GNUC_MACOSX) || defined(KARCH_DEV_GNUC_EE) // GNU compiler
00135 #define K_DEPRECATED __attribute__((deprecated))
00136 #elif defined(KARCH_DEV_INTEL) // Intel compiler
00137 #if (__INTEL_COMPILER >= 810) // Maybe we could use an earlier version, we should check this some day
00138 #define K_DEPRECATED __declspec(deprecated)
00139 #else
00140 #define K_DEPRECATED
00141 #endif
00142 #elif defined(KARCH_DEV_MSC) // Microsoft compiler
00143 #if (_MSC_VER >= 1300) // 7.1
00144 #define K_DEPRECATED __declspec(deprecated)
00145 #else
00146 #define K_DEPRECATED
00147 #endif
00148 #elif defined(KARCH_DEV_MACOSX) // Metrowerks compiler
00149 #define K_DEPRECATED
00150 #else // Unknown compiler
00151 #error Unknown compiler, can't define K_DECRECATED
00152 #endif
00153
00154 #include <fbxfilesdk/fbxfilesdk_memory.h>
00155
00156 #endif // FBXFILESDK_FBXFILESDK_DEF_H
00157