Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/ui/ui-drv/qt/config.h
blob: b3581440472f1cda4645bd681d9e91baceaef6e4 (plain)
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
148
149
#ifndef CONFIG_H
#define CONFIG_H
#define HOMEDIR

#ifdef __BEOS__
#define MAIN_FUNCTION be_main
#ifdef __POWERPC__
#  define SLOWCACHESYNC
#  ifdef __MWERKS__
#    define INLINEFABS(x) __fabs(x)
#  endif
#endif
#endif

#ifdef _WIN32
#define CONFIGFILE "XaoS.cfg"
#else
#define CONFIGFILE ".XaoSrc"
#endif

/*For compilers that don't support nameless unions, do a
#define NONAMELESSUNION
before #include <ddraw.h>*/
#ifdef _WIN32
#define NONAMELESSUNION
#endif

/*#define I_WAS_HERE */      /*uncoment this to disable changing of parameters by atoconf */

#define FPOINT_TYPE  long double
				       /*floating point math type on computers
				          with medium speed floating point math should   
				          use float instead */
#include <aconfig.h>
#define USE_STDIO
#if !defined(HAVE_LONG_DOUBLE)&&!defined(I_WAS_HERE)
#undef FPOINT_TYPE
#define FPOINT_TYPE double
#endif
#define CONST const
#define INLINE inline

/* BeOS have broken long double IO routines on i386. Use our replacements */
#ifdef __BEOS__
#ifdef __i386__
#define USE_XLDIO
#endif
#endif

/* Win32 don't support long double IO. Use our replacements if possible */
#ifdef _WIN32
#ifndef __GNUC__
1
/* You need to solve long double IO problems to compile XaoS on non-gcc
 * compiler */
#endif
#define USE_XLDIO
#endif

#include "gccaccel.h"
#ifdef HAVE_MOUSEMASK
#define NCURSESMOUSE
#endif
#ifndef HAVE_LIMITS_H
#define INT_MAX 2127423647
#endif
#ifdef SVGA_DRIVER
#define DESTICKY
#endif
#ifdef COCOA_DRIVER
#define SFIXEDCOLOR
#define STRUECOLOR
#define STRUECOLOR16
#define STRUECOLOR24
#define SMBITMAPS
#define SLBITMAPS
#endif
#ifdef QT_DRIVER
#define SFIXEDCOLOR
#define STRUECOLOR
#define STRUECOLOR16
#define STRUECOLOR24
#define SMBITMAPS
#define SLBITMAPS
#endif
#ifdef GTK_DRIVER
#define SFIXEDCOLOR
#define STRUECOLOR
#define STRUECOLOR16
#define STRUECOLOR24
#define SMBITMAPS
#define SLBITMAPS
#endif
#ifdef X11_DRIVER
#define SFIXEDCOLOR
#define STRUECOLOR
#define STRUECOLOR16
#define STRUECOLOR24
#define SMBITMAPS
#define SLBITMAPS
#endif
#ifdef SVGA_DRIVER
#undef STRUECOLOR16
#define STRUECOLOR16
#undef STRUECOLOR24
#define STRUECOLOR24
#endif
#ifdef GGI_DRIVER
#undef STRUECOLOR16
#define STRUECOLOR16
#undef STRUECOLOR24
#define STRUECOLOR24
#undef SLBITMAPS
#define SLBITMAPS
#endif
#ifdef BEOS_DRIVER
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __GNUC__
void be_exit_xaos(int i) __attribute__ ((__noreturn__));
#else
void be_exit_xaos(int i);
#endif
#ifdef __cplusplus
}
#endif
#define exit_xaos(i) be_exit_xaos(i)
#undef STRUECOLOR16
#define STRUECOLOR16
#undef SFIXEDCOLOR
#define SFIXEDCOLOR
#undef SMBITMAPS
#define SMBITMAPS
#undef SLBITMAPS
#define SLBITMAPS
#endif
#ifdef WIN32_DRIVER
#define MAIN_FUNCTION XaoS_main
#undef STRUECOLOR16
#define STRUECOLOR16
#undef STRUECOLOR24
#define STRUECOLOR24
#endif
#ifdef HAVE_SELECT
#define COMPILE_PIPE
#endif
#endif				/*CONFIG_H */