Add Dirk Luetjen's ssphys libraries and command-line tool
[vss2svn.git] / ssphys / SSRep / StdAfx.cpp
blobcb72fa4f0d6e13112e6f26541a9b3300454e1690
1 // stdafx.cpp : source file that includes just the standard includes
2 // ssphys.pch will be the pre-compiled header
3 // stdafx.obj will contain the pre-compiled type information
5 #include "stdafx.h"
7 // TODO: reference any additional headers you need in STDAFX.H
8 // and not in this file
11 #ifndef _INC_CRTDBG
12 #include <crtdbg.h>
13 #endif
15 #pragma warning (disable:4073) // get rid of warning for putting initializers in library initialization area
16 #pragma init_seg(lib)
18 struct crt_mem_leak_checker
20 enum
22 DBG_FLAGS = _CRTDBG_ALLOC_MEM_DF | _CRTDBG_CHECK_ALWAYS_DF
25 crt_mem_leak_checker()
27 _CrtSetDbgFlag(DBG_FLAGS);
30 ~crt_mem_leak_checker()
32 if (_CrtDumpMemoryLeaks())
34 // ::MessageBeep(MB_ICONHAND);
38 } the_checker;
40 #pragma warning (default:4073)