xref: /aoo41x/main/embedserv/source/inc/stdafx.h (revision 79aad27f)
1*cdf0e10cSrcweir #if !defined(AFX_STDAFX_H_)
2*cdf0e10cSrcweir #define AFX_STDAFX_H_
3*cdf0e10cSrcweir 
4*cdf0e10cSrcweir #if _MSC_VER > 1000
5*cdf0e10cSrcweir #pragma once
6*cdf0e10cSrcweir #endif // _MSC_VER > 1000
7*cdf0e10cSrcweir 
8*cdf0e10cSrcweir #define STRICT
9*cdf0e10cSrcweir #ifndef _WIN32_WINNT
10*cdf0e10cSrcweir #define _WIN32_WINNT 0x0400
11*cdf0e10cSrcweir #endif
12*cdf0e10cSrcweir #define _ATL_APARTMENT_THREADED
13*cdf0e10cSrcweir // #define _ATL_STATIC_REGISTRY
14*cdf0e10cSrcweir 
15*cdf0e10cSrcweir #ifdef _MSC_VER
16*cdf0e10cSrcweir #pragma warning(push)
17*cdf0e10cSrcweir #pragma warning(push, 1)
18*cdf0e10cSrcweir #pragma warning(disable: 4548)
19*cdf0e10cSrcweir #pragma warning(disable: 4505)
20*cdf0e10cSrcweir #endif
21*cdf0e10cSrcweir #include <atlbase.h>
22*cdf0e10cSrcweir //You may derive a class from CComModule and use it if you want to override
23*cdf0e10cSrcweir //something, but do not change the name of _Module
24*cdf0e10cSrcweir extern CComModule _Module;
25*cdf0e10cSrcweir #ifdef __MINGW32__
26*cdf0e10cSrcweir #include <algorithm>
27*cdf0e10cSrcweir using ::std::min;
28*cdf0e10cSrcweir using ::std::max;
29*cdf0e10cSrcweir #endif
30*cdf0e10cSrcweir #include <atlcom.h>
31*cdf0e10cSrcweir #include <atlctl.h>
32*cdf0e10cSrcweir 
33*cdf0e10cSrcweir //{{AFX_INSERT_LOCATION}}
34*cdf0e10cSrcweir // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
35*cdf0e10cSrcweir 
36*cdf0e10cSrcweir #ifdef _MSC_VER
37*cdf0e10cSrcweir #pragma warning(pop)
38*cdf0e10cSrcweir #pragma warning(pop)
39*cdf0e10cSrcweir #endif
40*cdf0e10cSrcweir 
41*cdf0e10cSrcweir #endif
42*cdf0e10cSrcweir 
43