KSquare Utilities
FirstIncludes.h
Go to the documentation of this file.
1 #if !defined(_DEBUG)
2 #define _NO_MEMORY_LEAK_CHECK_
3 #endif
4 
5 #ifndef WIN32
6 #define WIN32
7 #endif
8 
9 
10 #if defined(WIN32)
11  #define OS_WINDOWS
12  #if !defined(DOXYGEN)
13  #include <windows.h>
14  #endif
15 #endif
16 
17 #if defined(WIN64)
18 #define OS_WINDOWS
19 #endif
20 
21 #if defined(_MSC_VER)
22  #if _MSC_VER >= 1400
23  // We are using VS2005 or later; so we want to use the secure functions.
24  #define USE_SECURE_FUNCS
25  #endif
26 #else
27  // Since we are using Microsoft's memory leak detection and we are not using a MS compiler can not do memory leak check.
28  #define _NO_MEMORY_LEAK_CHECK_
29 #endif
30 
31 #if !defined(_NO_MEMORY_LEAK_CHECK_)
32  // _NO_MEMORY_LEAK_CHECK_ Put there by Kurt so that we can exclude
33  // this code. Specifically used when doing the DEBUG Multi threaded
34  // environment.
35  #if !defined(_WINDOWS)
36  #if defined(WIN32)
37  #include <windows.h>
38  #if defined(_DEBUG)
39  #define _CRTDBG_MAP_ALLOC
40  #include <stdlib.h>
41  #define STDLIB_INCLUDED
42  #include <crtdbg.h>
43  #define MYDEBUG_NEW new(_NORMAL_BLOCK, __FILE__, __LINE__)
44  #else
45  #if !defined(_WINDOWS)
46  #include <stdlib.h>
47  #define STDLIB_INCLUDED
48  #endif
49  #endif
50  #else
51  #define _ASSERTE(xx)
52  #endif
53  #endif
54 #endif
55 
56 
57 #if !defined(STDLIB_INCLUDED)
58 #include <stdlib.h>
59 #include <stdio.h>
60 #define STDLIB_INCLUDED
61 #endif
#define _NO_MEMORY_LEAK_CHECK_
Definition: FirstIncludes.h:28