• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //===----------------------------------------------------------------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 #ifndef SUPPORT_NASTY_MACROS_HPP
10 #define SUPPORT_NASTY_MACROS_HPP
11 
12 #define NASTY_MACRO This should not be expanded!!!
13 #define _A NASTY_MACRO
14 #define _B NASTY_MACRO
15 #define _C NASTY_MACRO
16 #define _D NASTY_MACRO
17 #define _E NASTY_MACRO
18 #define _F NASTY_MACRO
19 #define _G NASTY_MACRO
20 #define _H NASTY_MACRO
21 #define _I NASTY_MACRO
22 #define _J NASTY_MACRO
23 #define _K NASTY_MACRO
24 #define _L NASTY_MACRO
25 // Because FreeBSD uses _M in its <sys/types.h>, and it is hard to avoid
26 // including that header, only define _M for other operating systems.
27 #ifndef __FreeBSD__
28 #define _M NASTY_MACRO
29 #endif
30 #define _N NASTY_MACRO
31 #define _O NASTY_MACRO
32 #define _P NASTY_MACRO
33 #define _Q NASTY_MACRO
34 #define _R NASTY_MACRO
35 #define _S NASTY_MACRO
36 #define _T NASTY_MACRO
37 #define _U NASTY_MACRO
38 #define _V NASTY_MACRO
39 #define _W NASTY_MACRO
40 #define _X NASTY_MACRO
41 #define _Y NASTY_MACRO
42 #define _Z NASTY_MACRO
43 
44 // tchar.h defines these macros on Windows.
45 #define _UI   NASTY_MACRO
46 #define _PUC  NASTY_MACRO
47 #define _CPUC NASTY_MACRO
48 #define _PC   NASTY_MACRO
49 #define _CRPC NASTY_MACRO
50 #define _CPC  NASTY_MACRO
51 
52 // yvals.h on MINGW defines this macro
53 #define _C2 NASTY_MACRO
54 
55 // Test that libc++ doesn't use names reserved by WIN32 API Macros.
56 // NOTE: Obviously we can only define these on non-windows platforms.
57 #ifndef _WIN32
58 #define __deallocate NASTY_MACRO
59 #define __out NASTY_MACRO
60 #endif
61 
62 #define __output NASTY_MACRO
63 #define __input NASTY_MACRO
64 
65 #endif // SUPPORT_NASTY_MACROS_HPP
66