annotate lua/luadyncall/src/dynguess.h @ 42:1e3d929e43be

- godc updated to dc 1.1 and added note about missing feature
author Tassilo Philipp
date Tue, 14 Apr 2020 18:30:17 +0200
parents 0cfcc391201f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
1 #ifndef DYNGUESS_H
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
2 #define DYNGUESS_H
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
3
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
4 /* guess architecture (ARCH) */
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
5
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
6 #if defined __i386__
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
7 #define DG_ARCH_x86 1
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
8 #define DG_ARCH "x86"
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
9 #elif defined __x86_64__
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
10 #define DG_ARCH_x64 1
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
11 #define DG_ARCH "x64"
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
12 #elif defined __ppc__
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
13 #define DG_ARCH_ppc32 1
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
14 #define DG_ARCH "ppc32"
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
15 #elif defined __ppc64__
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
16 #define DG_ARCH_ppc64 1
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
17 #define DG_ARCH "ppc64"
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
18 #elif defined __arm__
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
19 #define DG_ARCH_arm 1
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
20 #define DG_ARCH "arm"
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
21 #elif defined __mips__
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
22 #define DG_ARCH_mips 1
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
23 #define DG_ARCH "mips"
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
24 #endif
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
25
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
26 /* guess operating system (OS) */
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
27
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
28 #if defined __APPLE__
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
29 #define DG_OS_osx 1
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
30 #define DG_OS "osx"
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
31 #elif defined __linux__
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
32 #define DG_OS_linux 1
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
33 #define DG_OS "linux"
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
34 #endif
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
35
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
36 /* guess compiler (CC) */
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
37
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
38 #if defined __GNUC__
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
39 #define DG_CC_gcc 1
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
40 #define DG_CC "gcc"
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
41 #define DG_CC_VERSION __VERSION__
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
42 #endif
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
43
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
44 #endif /* DYNGUESS_H */
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
45