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 #ifndef __NEOWTKBASE_H
00028 #define __NEOWTKBASE_H
00029
00030
00031 #if defined(NEOWTK_INTERNALS) && defined(HAVE_CONFIG_H)
00032 # include "buildconfig.h"
00033 #endif
00034
00035 #ifndef NOGDI
00036 # define NOGDI
00037 #endif
00038
00039 #include <neoengine/base.h>
00040
00041
00042 #define NEOWTKVERSION_MAJOR 0
00043 #define NEOWTKVERSION_MINOR 7
00044 #define NEOWTKVERSION_REVISION 0
00045
00046 #define NEOWTKVERSIONSTRING "0.7.0"
00047
00048
00049 #ifdef WIN32
00050
00051 # ifdef BUILD_STATIC
00052 # define NEOWTK_API
00053 # define NEOWTKEXPIMP_TEMPLATE
00054 # else
00055 # ifdef NEOWTK_EXPORTS
00056 # define NEOWTK_API __declspec(dllexport)
00057 # define NEOWTKEXPIMP_TEMPLATE
00058 # else
00059
00060 # pragma warning( disable : 4231 )
00061 # define NEOWTK_API __declspec(dllimport)
00062 # define NEOWTKEXPIMP_TEMPLATE extern
00063 # endif
00064 # endif
00065
00066 # define NEOWTK_ATTRIBUTE_PACKED
00067
00068 # ifdef __cplusplus
00069
00070
00071
00072
00073
00074
00075 # ifdef BUILD_STATIC
00076 # define WtkUDTVectorEXPIMP(classname)
00077 # else
00078 # pragma warning( disable : 4231 )
00079 # if ( _MSC_VER >= 1300 )
00080 # define WtkUDTVectorEXPIMP(classname) NEOWTKEXPIMP_TEMPLATE template class NEOWTK_API std::allocator< classname >; NEOWTKEXPIMP_TEMPLATE template class NEOWTK_API std::vector< classname >
00081 # elif !defined( __MINGW32__ )
00082 # define WtkUDTVectorEXPIMP(classname) NEOWTKEXPIMP_TEMPLATE template class NEOWTK_API std::vector< classname >
00083 # else
00084 # define WtkUDTVectorEXPIMP(classname)
00085 # endif
00086 # endif
00087 # endif
00088
00089 #elif defined(POSIX) || defined(__APPLE__)
00090
00091 # include <stdint.h>
00092 # define NEOWTK_API
00093 # define NEOWTK_ATTRIBUTE_PACKED __attribute__((packed))
00094
00095 #else
00096 # error "Platform uninplemented"
00097 #endif
00098
00099
00100 #endif