Mobile API Reference  MicroStrategy 2019
Msi_atldef.h
Go to the documentation of this file.
1 // File: atldef.h
2 // Date: 11th July 2001
3 // Author: Will Hurwood
4 // Modified by: Liqun Jin
5 //
6 //
7 // Copyright (C) 2001 MicroStrategy Incorporated
8 // All rights reserved
9 
10 // This header file replaces the atldef.h file from ATL on UNIX
11 // File declares similar symbols and classes to the corresponding VC++ file
12 
13 #ifndef __ATLDEF_H__
14 #define __ATLDEF_H__
15 
16 
17 // Disable some ATL macros
18 #define ATLASSERT(expr)
19 #define ATLTRY(x) x;
20 
21 #define ATL_NO_VTABLE
22 
23 // These symbols are used for functions that might be internal, or in
24 // a separate library. Here we define under assumption that they are
25 // in a different library.
26 #define ATLAPI extern "C" HRESULT
27 #define ATLAPI_(x) extern "C" x
28 #define ATLINLINE
29 
30 // Gulp - does UNIX compiler support packing?
31 #define _ATL_PACKING 8
32 #define offsetofclass(base, derived) ((DWORD_PTR)(static_cast<base*>((derived*)_ATL_PACKING))-_ATL_PACKING)
33 
34 #ifdef offsetof
35 #undef offsetof
36 #endif
37 
38 #define offsetof(s,m) (size_t)&(((s *)0)->m)
39 
41 // Master version numbers
42 
43 #define _ATL 1 // Active Template Library
44 #define _ATL_VER 0x0300 // Active Template Library version 3.0
45 
46 
48 // Threading
49 
50 #ifndef _ATL_SINGLE_THREADED
51 #ifndef _ATL_APARTMENT_THREADED
52 #ifndef _ATL_FREE_THREADED
53 #define _ATL_FREE_THREADED
54 #endif
55 #endif
56 #endif
57 
58 
59 #endif // __ATLDEF_H__