source: Daodan/MSYS2/mingw32/i686-w64-mingw32/include/initoid.h@ 1194

Last change on this file since 1194 was 1166, checked in by rossy, 3 years ago

Daodan: Replace MinGW build env with an up-to-date MSYS2 env

File size: 1.3 KB
Line 
1/**
2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the mingw-w64 runtime package.
4 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
5 */
6#define MAPI_PREFIX 0x2A,0x86,0x48,0x86,0xf7,0x14,0x03
7
8#undef DEFINE_OID_1
9#undef DEFINE_OID_2
10#undef DEFINE_OID_3
11#undef DEFINE_OID_4
12
13#ifdef __cplusplus
14#define DEFINE_OID_1(name,b0,b1) EXTERN_C const BYTE __based(__segname("_CODE")) name[] = { MAPI_PREFIX,b0,b1 }
15#define DEFINE_OID_2(name,b0,b1,b2) EXTERN_C const BYTE __based(__segname("_CODE")) name[] = { MAPI_PREFIX,b0,b1,b2 }
16#define DEFINE_OID_3(name,b0,b1,b2,b3) EXTERN_C const BYTE __based(__segname("_CODE")) name[] = { MAPI_PREFIX,b0,b1,b2,b3 }
17#define DEFINE_OID_4(name,b0,b1,b2,b3,b4) EXTERN_C const BYTE __based(__segname("_CODE")) name[] = { MAPI_PREFIX,b0,b1,b2,b3,b4 }
18#else
19#define DEFINE_OID_1(name,b0,b1) const BYTE __based(__segname("_CODE")) name[] = { MAPI_PREFIX,b0,b1 }
20#define DEFINE_OID_2(name,b0,b1,b2) const BYTE __based(__segname("_CODE")) name[] = { MAPI_PREFIX,b0,b1,b2 }
21#define DEFINE_OID_3(name,b0,b1,b2,b3) const BYTE __based(__segname("_CODE")) name[] = { MAPI_PREFIX,b0,b1,b2,b3 }
22#define DEFINE_OID_4(name,b0,b1,b2,b3,b4) const BYTE __based(__segname("_CODE")) name[] = { MAPI_PREFIX,b0,b1,b2,b3,b4 }
23#endif
Note: See TracBrowser for help on using the repository browser.