6 #if !defined(AFX_STDAFX_H__E30B2003_188B_4EB4_AB99_3F3734D6CE6C__INCLUDED_)
7 #define AFX_STDAFX_H__E30B2003_188B_4EB4_AB99_3F3734D6CE6C__INCLUDED_
14 #define min(a,b) (((a) < (b)) ? (a) : (b))
17 #define max(a,b) (((a) > (b)) ? (a) : (b))
22 #define __DUILIB_STR2WSTR(str) L##str
23 #define _DUILIB_STR2WSTR(str) __DUILIB_STR2WSTR(str)
25 #define __FILET__ _DUILIB_STR2WSTR(__FILE__)
26 #define __FUNCTIONT__ _DUILIB_STR2WSTR(__FUNCTION__)
28 #define __FILET__ __FILE__
29 #define __FUNCTIONT__ __FUNCTION__
33 #define _CRT_SECURE_NO_DEPRECATE
37 #pragma warning (disable : 4511) // copy operator could not be generated
38 #pragma warning (disable : 4512) // assignment operator could not be generated
39 #pragma warning (disable : 4702) // unreachable code (bugs in Microsoft's STL)
40 #pragma warning (disable : 4786) // identifier was truncated
41 #pragma warning (disable : 4996) // function or variable may be unsafe (deprecated)
42 #ifndef _CRT_SECURE_NO_WARNINGS
43 #define _CRT_SECURE_NO_WARNINGS // eliminate deprecation warnings for VS2005
47 #pragma option -w-8027 // function not expanded inline
52 #define _WIN32_WINNT 0x0500
59 #define lengthof(x) (sizeof(x)/sizeof(*x))
62 #define CLAMP(x,a,b) (MIN(b,MAX(a,x)))
67 #endif // !defined(AFX_STDAFX_H__E30B2003_188B_4EB4_AB99_3F3734D6CE6C__INCLUDED_)