HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
UT_API.h
Go to the documentation of this file.
1 
2 #ifndef __UT_API_h__
3 #define __UT_API_h__
4 
5 #include <SYS/SYS_Visibility.h>
6 
7 #ifdef UT_EXPORTS
8 #define UT_API SYS_VISIBILITY_EXPORT
9 #define UT_API_TMPL SYS_VISIBILITY_EXPORT_TMPL
10 #define UT_API_TINST SYS_VISIBILITY_EXPORT_TINST
11 #else
12 #define UT_API SYS_VISIBILITY_IMPORT
13 #define UT_API_TMPL SYS_VISIBILITY_IMPORT_TMPL
14 #define UT_API_TINST SYS_VISIBILITY_IMPORT_TINST
15 #endif
16 
17 // Check that we are being built with valid compiler options.
18 #ifdef WIN32
19  #if _MSC_VER < 1300
20  #error "You must compile with MS Visual C++ .NET 2003"
21  #endif
22  #ifndef __cplusplus
23  #error "You must compile with the /TP switch (C++ Compilation)"
24  #endif
25  #ifndef _MT
26  #error "You must compile with the /MD or /MT switch (Multithreaded CRT)"
27  #endif
28  #ifndef _CPPUNWIND
29  #error "You must compile with the /GX switch (Exception Handling)"
30  #endif
31  #ifndef _CPPRTTI
32  #error "You must compile with the /GR switch (RTTI)"
33  #endif
34  #ifndef WIN32
35  #error "You must define WIN32"
36  #endif
37  #ifdef _M_IX86
38  #ifndef SESI_LITTLE_ENDIAN
39  #error "You must define SESI_LITTLE_ENDIAN for IX86 compilation"
40  #endif
41  #endif
42 #endif
43 
44 #endif