// 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
