12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- #if !defined(AFX_STDAFX_H__E30B2003_188B_4EB4_AB99_3F3734D6CE6C__INCLUDED_)
- #define AFX_STDAFX_H__E30B2003_188B_4EB4_AB99_3F3734D6CE6C__INCLUDED_
- #pragma once
- #ifdef __GNUC__
- #ifndef min
- #define min(a,b) (((a) < (b)) ? (a) : (b))
- #endif
- #ifndef max
- #define max(a,b) (((a) > (b)) ? (a) : (b))
- #endif
- #endif
- #ifndef __FILET__
- #define __DUILIB_STR2WSTR(str) L##str
- #define _DUILIB_STR2WSTR(str) __DUILIB_STR2WSTR(str)
- #ifdef _UNICODE
- #define __FILET__ _DUILIB_STR2WSTR(__FILE__)
- #define __FUNCTIONT__ _DUILIB_STR2WSTR(__FUNCTION__)
- #else
- #define __FILET__ __FILE__
- #define __FUNCTIONT__ __FUNCTION__
- #endif
- #endif
- #define _CRT_SECURE_NO_DEPRECATE
- #ifdef _MSC_VER
- #pragma warning (disable : 4511)
- #pragma warning (disable : 4512)
- #pragma warning (disable : 4702)
- #pragma warning (disable : 4786)
- #pragma warning (disable : 4996)
- #ifndef _CRT_SECURE_NO_WARNINGS
- #define _CRT_SECURE_NO_WARNINGS
- #endif
- #endif
- #ifdef __BORLANDC__
- #pragma option -w-8027
- #endif
- #ifndef _WIN32_WINNT
- #define _WIN32_WINNT 0x0500
- #endif
- #define DUILIB_LINK_DISABLE
- #include "UIlib.h"
- #include <olectl.h>
- #include <AtlBase.h>
- #include <AtlConv.h>
- #define lengthof(x) (sizeof(x)/sizeof(*x))
- #define MAX max
- #define MIN min
- #define CLAMP(x,a,b) (MIN(b,MAX(a,x)))
- #endif
|