File: config.h

package info (click to toggle)
thrust 0.89c-3.5
  • links: PTS
  • area: main
  • in suites: squeeze, wheezy
  • size: 2,080 kB
  • ctags: 996
  • sloc: ansic: 20,409; sh: 2,483; makefile: 332
file content (94 lines) | stat: -rw-r--r-- 1,720 bytes parent folder | download | duplicates (6)
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

/* Written by Peter Ekberg, peda@lysator.liu.se */

#ifndef CONFIG_H
#define CONFIG_H

#undef const
#undef inline

#define __STDC__ 1
#define fdopen _fdopen
#define fileno _fileno
#define strcasecmp _stricmp
#define tolower _tolower
#define random rand
#define srandom srand
#define usleep(x) Sleep((x)/1000)
#define sleep(x) Sleep((x)*1000)
#define M_PI (3.14159265358979323846)
#define hypot(x, y) sqrt((x)*(x) + (y)*(y))
#include <Windows.h>

#undef HAVE_UNISTD_H
#undef HAVE_VALUES_H

#undef HAVE_DEFINE_SCANCODE_P

#define HAVE_GETOPT_H
#undef HAVE_GETOPT_LONG_ONLY

#define HAVE_RANDOM
#define HAVE_USLEEP
#define HAVE_STRDUP

#define HAVE_ATEXIT
#undef HAVE_ON_EXIT

#undef HAVE_XSHMPUTIMAGE


#undef HAVE_SOUND
#ifdef HAVE_SOUND
# undef HAVE_16BIT_SOUND

# undef HAVE_LINUX_SOUND
# ifdef HAVE_LINUX_SOUND
#  undef HAVE_LINUX_SOUNDCARD_H
# endif /* HAVE_LINUX_SOUND */

# undef HAVE_SUN_SOUND
# ifdef HAVE_SUN_SOUND
#  undef HAVE_SYS_AUDIOIO_H
#  undef HAVE_SUN_AUDIOIO_H
#  undef HAVE_SUN_SPEAKER
#  undef HAVE_SUN_HEADPHONE
#  undef HAVE_SUN_LINE_OUT
# endif /* HAVE_SUN_SOUND */

# undef HAVE_HP_SOUND
# ifdef HAVE_HP_SOUND
#  undef HAVE_SYS_AUDIO_H
#  undef HAVE_HP_INTERNAL_SPEAKER
#  undef HAVE_HP_EXTERNAL_SPEAKER
#  undef HAVE_HP_LINE_OUT
# endif /* HAVE_HP_SOUND */

#endif /* HAVE_SOUND */


#define RETSIGTYPE void

#define PRINTF_RETURN 1

#undef _POSIX_C_SOURCE
#undef _XOPEN_SOURCE

#ifndef HAVE_RANDOM
# define random rand
# define srandom srand
#endif /* HAVE_RANDOM */

#ifndef HAVE_USLEEP
void usleep(unsigned long usec);
#endif /* HAVE_USLEEP */

#ifndef HAVE_STRDUP
char *strdup(const char *s);
#endif /* HAVE_STRDUP */

#ifdef HAVE_XSHMPUTIMAGE
# define MITSHM
#endif

#endif /* CONFIG_H */