]> git.mxchange.org Git - flightgear.git/blob - Lib/src/slPortability.h
Merge FG_Lib as subdirectory
[flightgear.git] / Lib / 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 #if defined( __CYGWIN__ ) || defined( __CYGWIN32__ )
23 #  define NEAR /* */
24 #  define FAR  /* */
25 #endif
26 #include <mmsystem.h>
27 #endif
28
29 #include <fcntl.h>
30 #include <sys/stat.h>
31 #include <string.h>
32 #include <math.h>
33
34 #if defined(__linux__) || defined(__FreeBSD__)
35 #define SL_USING_OSS_AUDIO 1
36 #endif
37
38 #ifdef SL_USING_OSS_AUDIO
39 #if defined(__linux__)
40 #include <linux/soundcard.h>
41 #elif defined(__FreeBSD__)
42 #include <machine/soundcard.h>
43 #else
44 /*
45   Tom thinks this file may be <sys/soundcard.h> under some
46   unixen - but that isn't where the OSS manuals say it
47   should be.
48
49   If you ever find out the truth, please email me:
50      Steve Baker <sjbaker1@airmail.net>
51 */
52 #include <soundcard.h>
53 #endif
54 #endif
55
56 #ifdef  __OpenBSD__
57 #include <sys/audioio.h>
58 #endif
59
60 #ifdef WIN32
61 #define strcasecmp stricmp   /* Yes, Steve really does *HATE* Windoze */
62 #endif
63
64 /* Tom */
65
66 #ifdef  sgi
67 #include <audio.h>
68 #endif
69
70 #endif
71