Debian Codegraph @

src/vendor/azure-uamqp-c/deps/azure-c-shared-utility/testtools/micromock/inc/stdafx.h

raw
1 // Copyright (c) Microsoft. All rights reserved.
2 // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
4 #pragma once
5
6 #include "targetver.h"
7
8 #ifdef _MSC_VER
9 #ifndef WIN32_LEAN_AND_MEAN
10 #define WIN32_LEAN_AND_MEAN
11 #endif // WIN32_LEAN_AND_MEAN
12 #include "windows.h"
13 #include "tchar.h"
14 #include "sal.h"
15 #include "basetsd.h"
16 #define SAL_Acquires_lock_(...) _Acquires_lock_(__VA_ARGS__)
17 #define SAL_Releases_lock_(...) _Releases_lock_(__VA_ARGS__)
18 typedef CRITICAL_SECTION MICROMOCK_CRITICAL_SECTION;
19 #define MicroMockEnterCriticalSection(...) EnterCriticalSection(__VA_ARGS__)
20 #define MicroMockLeaveCriticalSection(...) LeaveCriticalSection(__VA_ARGS__)
21
22 #define MicroMockInitializeCriticalSection(...) InitializeCriticalSection(__VA_ARGS__)
23
24 #define MicroMockDeleteCriticalSection(...) DeleteCriticalSection(__VA_ARGS__)
25 #else
26 typedef unsigned char UINT8;
27 typedef char TCHAR;
28 #define _T(A) A
29 typedef int MICROMOCK_CRITICAL_SECTION;
30 #define MicroMockEnterCriticalSection(...)
31 #define MicroMockLeaveCriticalSection(...)
32 #define MicroMockInitializeCriticalSection(...)
33 #define MicroMockDeleteCriticalSection(...)
34 #define SAL_Acquires_lock_(...)
35 #define SAL_Releases_lock_(...)
36 #endif
37
38 #include "string"
39 #include "sstream"
40 #include "map"
41 #include "algorithm"
42 #include "iomanip"
43 #include "vector"
44 #include "set"
45
46 #include "sal.h"
47
48 #ifdef _MSC_VER
49 /*'function' : unreferenced local function has been removed*/
50 #pragma warning( disable: 4505 )
51
52 /*unreferenced inline function has been removed*/
53 #pragma warning( disable: 4514)
54 #endif
55
56 #define COUNT_OF(a) (sizeof(a) / sizeof((a)[0]))
57
58 namespace std
59 {
60 typedef std::basic_string<TCHAR> tstring;
61 typedef std::basic_ostringstream<TCHAR> tostringstream;
62 }