summaryrefslogtreecommitdiffstats
path: root/akregator/src/mk4storage/metakit/src/mfc.h
blob: 6e6d3e248a1da56d07237fa71fad70bfd4754031 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// mfc.h --
// $Id$
// This is part of Metakit, see http://www.equi4.com/metakit/

/** @file
 * Configuration header for MFC-based builds
 */

#define q4_MFC 1

#if q4_WIN && !q4_WIN32
#include <afxwin.h>
#else
#include <afxcoll.h>
#endif

#undef d4_assert
#define d4_assert ASSERT

#undef d4_assertThis
#define d4_assertThis d4_assert(AfxIsValidAddress(this, sizeof *this, FALSE))

#undef d4_new
#define d4_new DEBUG_NEW

typedef class CString   c4_String;
typedef class CPtrArray   c4_PtrArray;
typedef class CDWordArray c4_DWordArray;    
typedef class CStringArray  c4_StringArray;   

  // MSVC 1.52 thinks a typedef has no constructor, so use a define instead
#if !q4_OK && q4_MSVC && _MSC_VER == 800
#define c4_String CString
#endif