1 /* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
2 /* If you are missing that file, acquire a complete release at teeworlds.com. */
7 this file detected the family, platform and architecture
14 #if defined(WIN64) || defined(_WIN64)
15 /* Hmm, is this IA64 or x86-64? */
16 #define CONF_FAMILY_WINDOWS 1
17 #define CONF_FAMILY_STRING "windows"
18 #define CONF_PLATFORM_WIN64 1
19 #define CONF_PLATFORM_STRING "win64"
20 #elif defined(WIN32) || defined(_WIN32) || defined(__CYGWIN32__) || defined(__MINGW32__)
21 #define CONF_FAMILY_WINDOWS 1
22 #define CONF_FAMILY_STRING "windows"
23 #define CONF_PLATFORM_WIN32 1
24 #define CONF_PLATFORM_STRING "win32"
28 #if defined(__FreeBSD__)
29 #define CONF_FAMILY_UNIX 1
30 #define CONF_FAMILY_STRING "unix"
31 #define CONF_PLATFORM_FREEBSD 1
32 #define CONF_PLATFORM_STRING "freebsd"
35 #if defined(__OpenBSD__)
36 #define CONF_FAMILY_UNIX 1
37 #define CONF_FAMILY_STRING "unix"
38 #define CONF_PLATFORM_OPENBSD 1
39 #define CONF_PLATFORM_STRING "openbsd"
42 #if defined(__LINUX__) || defined(__linux__)
43 #define CONF_FAMILY_UNIX 1
44 #define CONF_FAMILY_STRING "unix"
45 #define CONF_PLATFORM_LINUX 1
46 #define CONF_PLATFORM_STRING "linux"
49 #if defined(MACOSX) || defined(__APPLE__) || defined(__DARWIN__)
50 #define CONF_FAMILY_UNIX 1
51 #define CONF_FAMILY_STRING "unix"
52 #define CONF_PLATFORM_MACOSX 1
53 #define CONF_PLATFORM_STRING "macosx"
57 #define CONF_FAMILY_UNIX 1
58 #define CONF_FAMILY_STRING "unix"
59 #define CONF_PLATFROM_SOLARIS 1
60 #define CONF_PLATFORM_STRING "solaris"
64 #if defined(__BeOS) || defined(__BEOS__)
65 #define CONF_FAMILY_BEOS 1
66 #define CONF_FAMILY_STRING "beos"
67 #define CONF_PLATFORM_BEOS 1
68 #define CONF_PLATFORM_STRING "beos"
73 #if defined(i386) || defined(__i386__) || defined(__x86__) || defined(CONF_PLATFORM_WIN32)
74 #define CONF_ARCH_IA32 1
75 #define CONF_ARCH_STRING "ia32"
76 #define CONF_ARCH_ENDIAN_LITTLE 1
80 #define CONF_ARCH_IA64 1
81 #define CONF_ARCH_STRING "ia64"
82 #define CONF_ARCH_ENDIAN_LITTLE 1
85 #if defined(__amd64__) || defined(__x86_64__)
86 #define CONF_ARCH_AMD64 1
87 #define CONF_ARCH_STRING "amd64"
88 #define CONF_ARCH_ENDIAN_LITTLE 1
91 #if defined(__powerpc__) || defined(__ppc__)
92 #define CONF_ARCH_PPC 1
93 #define CONF_ARCH_STRING "ppc"
94 #define CONF_ARCH_ENDIAN_BIG 1
97 #if defined(__sparc__)
98 #define CONF_ARCH_SPARC 1
99 #define CONF_ARCH_STRING "sparc"
100 #define CONF_ARCH_ENDIAN_BIG 1
104 #ifndef CONF_FAMILY_STRING
105 #define CONF_FAMILY_STRING "unknown"
108 #ifndef CONF_PLATFORM_STRING
109 #define CONF_PLATFORM_STRING "unknown"
112 #ifndef CONF_ARCH_STRING
113 #define CONF_ARCH_STRING "unknown"