-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathats.h
More file actions
147 lines (139 loc) · 2.77 KB
/
ats.h
File metadata and controls
147 lines (139 loc) · 2.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
#ifndef __ATS_H__
#define __ATS_H__
// ATS -> Auto Target System
#ifdef __MINGW32__
# ifndef ATS_MINGW
# define ATS_MINGW
# endif
# ifdef __MINGW64__
# ifndef ATS_X64
# define ATS_X64
# endif
# else
# ifndef ATS_X86
# define ATS_X86
# endif
# endif
#elifdef _WIN32
# ifndef ATS_WINDOWS
# define ATS_WINDOWS
# endif
# if defined(_WIN64) || defined(_M_AMD64) || defined(_M_X64)
# ifndef ATS_X64
# define ATS_X64
# endif
# else
# ifndef ATS_X86
# define ATS_X86
# endif
# endif
#elif defined(__linux__) || defined(__linux) || defined(linux)
# ifndef ATS_LINUX
# define ATS_LINUX
# endif
# ifdef __gnu_linux__
# ifndef ATS_GLIBC
# define ATS_GLIBC
# endif
# endif
#elif defined(__unix__) || defined(__unix) || defined(unix)
# ifndef ATS_UNIX
# define ATS_UNIX
# endif
#elif defined(__APPLE__) || defined(__MACH__)
# ifndef ATS_APPLE
# define ATS_APPLE
# endif
#endif
#ifdef __STDC_HOSTED__
# ifndef ATS_HOSTED
# define ATS_HOSTED
# endif
#else
# ifndef ATS_FREESTANDING
# define ATS_FREESTANDING
# endif
#endif
#if defined(__LP64__) || defined(_LP64)
# ifndef ATS_64BIT
# define ATS_64BIT
# endif
#elif defined(__ILP32__) || defined(_ILP32)
# ifndef ATS_32BIT
# define ATS_32BIT
# endif
#endif
#if defined(__amd64__) || defined(__amd64) || defined(__x86_64__) || defined(__x86_64)
# ifndef ATS_X64
# define ATS_X64
# endif
#elif defined(__i386__) || defined(__i386) || defined(i386) || defined(_X86_) \
|| defined(__i686__) || defined(__i686) || defined(i686)
# ifndef ATS_X86
# define ATS_X86
# endif
#endif
#ifdef __ELF__
# ifndef ATS_ELF
# define ATS_ELF
# endif
#endif
#ifdef __clang__ // Is using Clang?
# ifndef ATS_CLANG
# define ATS_CLANG
# endif
# ifdef __cplusplus
# ifndef ATS_CPP
# define ATS_CPP
# endif
# ifndef ATS_CPP_VERSION
# define ATS_CPP_VERSION __cplusplus
# endif
# else
# ifndef ATS_C
# define ATS_C
# endif
# ifndef ATS_C_VERSION
# define ATS_C_VERSION __STDC_VERSION__
# endif
# endif
#elifdef __GNUC__ // Is using GCC?
# ifndef ATS_GCC
# define ATS_GCC
# endif
# ifdef __GNUG__
# ifndef ATS_CPP
# define ATS_CPP
# endif
# ifndef ATS_CPP_VERSION
# define ATS_CPP_VERSION __cplusplus
# endif
# else
# ifndef ATS_C
# define ATS_C
# endif
# ifndef ATS_C_VERSION
# define ATS_C_VERSION __STDC_VERSION__
# endif
# endif
#elifdef _MSC_VER // Is using MSVC?
# ifndef ATS_MSVC
# define ATS_MSVC
# endif
# ifdef _MSVC_LANG
# ifndef ATS_CPP
# define ATS_CPP
# endif
# ifndef ATS_CPP_VERSION
# define ATS_CPP_VERSION _MSVC_LANG
# endif
# else
# ifndef ATS_C
# define ATS_C
# endif
# ifndef ATS_C_VERSION
# define ATS_C_VERSION __STDC_VERSION__
# endif
# endif
#endif
#endif // __ATS_H__