0
|
1 #ifndef DYNGUESS_H
|
|
2 #define DYNGUESS_H
|
|
3
|
|
4 /* guess architecture (ARCH) */
|
|
5
|
|
6 #if defined __i386__
|
|
7 #define DG_ARCH_x86 1
|
|
8 #define DG_ARCH "x86"
|
|
9 #elif defined __x86_64__
|
|
10 #define DG_ARCH_x64 1
|
|
11 #define DG_ARCH "x64"
|
|
12 #elif defined __ppc__
|
|
13 #define DG_ARCH_ppc32 1
|
|
14 #define DG_ARCH "ppc32"
|
|
15 #elif defined __ppc64__
|
|
16 #define DG_ARCH_ppc64 1
|
|
17 #define DG_ARCH "ppc64"
|
|
18 #elif defined __arm__
|
|
19 #define DG_ARCH_arm 1
|
|
20 #define DG_ARCH "arm"
|
|
21 #elif defined __mips__
|
|
22 #define DG_ARCH_mips 1
|
|
23 #define DG_ARCH "mips"
|
|
24 #endif
|
|
25
|
|
26 /* guess operating system (OS) */
|
|
27
|
|
28 #if defined __APPLE__
|
|
29 #define DG_OS_osx 1
|
|
30 #define DG_OS "osx"
|
|
31 #elif defined __linux__
|
|
32 #define DG_OS_linux 1
|
|
33 #define DG_OS "linux"
|
|
34 #endif
|
|
35
|
|
36 /* guess compiler (CC) */
|
|
37
|
|
38 #if defined __GNUC__
|
|
39 #define DG_CC_gcc 1
|
|
40 #define DG_CC "gcc"
|
|
41 #define DG_CC_VERSION __VERSION__
|
|
42 #endif
|
|
43
|
|
44 #endif /* DYNGUESS_H */
|
|
45
|