00001
00002 #ifndef __UT_API_h__
00003 #define __UT_API_h__
00004
00005 #if defined(WIN32) && !defined(MAKING_STATIC)
00006 #ifdef EXPORT_UT
00007 #define UT_API __declspec(dllexport)
00008 #else
00009 #define UT_API __declspec(dllimport)
00010 #endif
00011 #else
00012 #define UT_API
00013 #endif
00014
00015
00016 #ifdef WIN32
00017 #if _MSC_VER < 1300
00018 #error "You must compile with MS Visual C++ .NET 2003"
00019 #endif
00020 #ifndef __cplusplus
00021 #error "You must compile with the /TP switch (C++ Compilation)"
00022 #endif
00023 #ifndef _MT
00024 #error "You must compile with the /MD or /MT switch (Multithreaded CRT)"
00025 #endif
00026 #ifndef _CPPUNWIND
00027 #error "You must compile with the /GX switch (Exception Handling)"
00028 #endif
00029 #ifndef _CPPRTTI
00030 #error "You must compile with the /GR switch (RTTI)"
00031 #endif
00032 #ifndef WIN32
00033 #error "You must define WIN32"
00034 #endif
00035 #ifdef _M_IX86
00036 #ifndef SESI_LITTLE_ENDIAN
00037 #error "You must define SESI_LITTLE_ENDIAN for IX86 compilation"
00038 #endif
00039 #endif
00040 #endif
00041
00042 #endif