]> git.mxchange.org Git - simgear.git/blob - src/slPortability.h
09953a5fc0bf87e9d222afcf3cd2624d87b1c1de
[simgear.git] / src / slPortability.h
1
2 #ifndef __SLPORTABILITY_H__
3 #define __SLPORTABILITY_H__ 1
4
5 /* ------------------------------------------------------------- */
6 /* OS specific includes and defines ...                          */
7 /* ------------------------------------------------------------- */
8
9 #ifdef HAVE_CONFIG_H
10 #  include <config.h>
11 #endif
12 #undef VERSION
13
14 #include <stdio.h>
15 #include <stdlib.h>
16
17 #ifndef  WIN32
18 #include <unistd.h>
19 #include <sys/ioctl.h>
20 #else
21 #include <windows.h>
22 #ifdef __CYGWIN32__
23 #  define NEAR /* */
24 #  define FAR  /* */
25 #  define WHERE_EVER_YOU_ARE /* Curt: optional, but it reminds me of a song */
26 #endif
27 #include <mmsystem.h>
28 #endif
29
30 #include <fcntl.h>
31 #include <sys/stat.h>
32 #include <string.h>
33 #include <math.h>
34
35 #ifdef __linux__
36 #define SL_USING_OSS_AUDIO 1
37 #endif
38
39 #ifdef SL_USING_OSS_AUDIO
40 #if defined(__linux__)
41 #include <linux/soundcard.h>
42 #elif defined(__FreeBSD__)
43 #include <machine/soundcard.h>
44 #else
45 /*
46   Tom thinks this file may be <sys/soundcard.h> under some
47   unixen - but that isn't where the OSS manuals say it
48   should be.
49
50   If you ever find out the truth, please email me:
51      Steve Baker <sjbaker1@airmail.net>
52 */
53 #include <soundcard.h>
54 #endif
55 #endif
56
57 #ifdef  __OpenBSD__
58 #include <sys/audioio.h>
59 #endif
60
61 #ifdef WIN32
62 #define strcasecmp stricmp   /* Yes, Steve really does *HATE* Windoze */
63 #endif
64
65 /* Tom */
66
67 #ifdef  sgi
68 #include <audio.h>
69 #endif
70
71 #endif
72