-
Notifications
You must be signed in to change notification settings - Fork 68
/
sqConfig.h
76 lines (69 loc) · 2.2 KB
/
sqConfig.h
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
/* win32/win64 sqConfig.h -- platform identification and configuration */
/* Some compilers use different win32/64 definitions. According to Microsoft
* _WIN32 & _WIN64 are the official defines.
* Some preprocessors (clangs :-() barf on #if FOO if FOO is undefined, failing
* to default undefined identifiers to 0L, as specified.
*/
#if defined(WIN32) && !_WIN32
# if WIN32
# undef _WIN32
# define _WIN32 1
# endif
#endif
#if defined(Win32) && !_WIN32
# if Win32
# undef _WIN32
# define _WIN32 1
# endif
#endif
#if defined(WIN64) && !_WIN64
# if WIN64
# undef _WIN64
# define _WIN64 1
# endif
#endif
#if defined(Win64) && !_WIN64
# if Win64
# undef _WIN64
# define _WIN64 1
# endif
#endif
#if _WIN32 || _WIN64
# if defined(SQ_CONFIG_DONE)
# error configuration conflict
# endif
# if defined(_M_IX86) || defined(X86) || defined(_M_I386) || defined(_X86_) \
|| defined(i386) || defined(i486) || defined(i586) || defined(i686) \
|| defined(__i386__) || defined(__386__) || defined(I386) \
\
|| defined(_M_X64) || defined(__amd64__) || defined(__amd64) \
|| defined(x86_64) || defined(__x86_64__) || defined(__x86_64) \
|| defined(x64) \
\
|| defined(_WIN32_WCE) \
\
|| defined(_M_ARM64)
# include "sqWin32.h"
# define SQ_CONFIG_DONE
# else
# error unsupported win32/win64 processor type (alpha?!)
# endif
#endif
#if !defined(SQ_CONFIG_DONE)
# error test for, and describe, your architecture here.
#endif
#define VMBIGENDIAN 0
#if defined(__GNUC__) && (__GNUC__ == 3 || (!defined(__MINGW32__) && !defined(__MINGW64__)))
/* Define the "don't generate functions with register parameters" attribute
* for x86 and similar. Do so for debugging; gdb typically can't call static
* functions that have been optimized to use register arguments.
*/
# if defined(_M_IX86) || defined(_M_I386) || defined(_X86_) || defined(i386) || defined(i486) || defined(i586) || defined(i686) || defined(__i386__) || defined(__386__) || defined(X86) || defined(I386)
# define PlatformNoDbgRegParms __attribute__ ((regparm (0)))
# endif
# define PlatformNoDbgRegParms __attribute__ ((regparm (0)))
# define NeverInline __attribute__ ((noinline))
#endif
#if defined(__clang__)
# define NeverInline __attribute__ ((noinline))
#endif