source: roaraudio/include/roaraudio/targethacks.h @ 6052:d48765b2475e

Last change on this file since 6052:d48765b2475e was 6052:d48765b2475e, checked in by phi, 9 years ago

updated copyright headers

File size: 2.1 KB
Line 
1//targethacks.h:
2
3/*
4 *      Copyright (C) Philipp 'ph3-der-loewe' Schafft - 2008-2015
5 *
6 *  This file is part of RoarAudio,
7 *  a cross-platform sound system for both, home and professional use.
8 *  See README for details.
9 *
10 *  This file is free software; you can redistribute it and/or modify
11 *  it under the terms of the GNU Lesser General Public License version 3
12 *  as published by the Free Software Foundation.
13 *
14 *  RoarAudio is distributed in the hope that it will be useful,
15 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
16 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 *  GNU Lesser General Public License for more details.
18 *
19 *  You should have received a copy of the GNU Lesser General Public License
20 *  along with this software; see the file COPYING.  If not, write to
21 *  the Free Software Foundation, 51 Franklin Street, Fifth Floor,
22 *  Boston, MA 02110-1301, USA.
23 *
24 *  NOTE: Even though this file is LGPLed it (may) include GPLed files
25 *  so the license of this file is/may therefore downgraded to GPL.
26 *  See HACKING for details.
27 */
28
29#ifndef _ROARAUDIO_TARGETHACKS_H_
30#define _ROARAUDIO_TARGETHACKS_H_
31
32#ifndef ROAR_HAVE_T_ID_T
33#define id_t      int
34#endif
35
36#ifndef ROAR_HAVE_T_PID_T
37#define pid_t     int
38#endif
39
40#ifndef ROAR_HAVE_T_UID_T
41#define uid_t     int
42#endif
43
44#ifndef ROAR_HAVE_T_GID_T
45#define gid_t     int
46#endif
47
48#ifndef ROAR_HAVE_T_SOCKLEN_T
49#define socklen_t int
50#endif
51
52#ifndef ROAR_HAVE_T_MODE_T
53#define mode_t    unsigned int
54#endif
55
56#ifndef ROAR_HAVE_T_OFF_T
57#define off_t     int
58#endif
59
60/*
61#define size_t    unsigned int
62*/
63#ifndef ROAR_HAVE_T_SSIZE_T
64#define ssize_t   signed   int
65#endif
66
67#ifndef ROAR_HAVE_T_TIME_T
68#define time_t    int64_t
69#endif
70
71#ifndef ROAR_HAVE_T_SA_FAMILY_T
72#define sa_family_t char
73#endif
74
75#ifndef ROAR_HAVE_CONST_M_PI_2
76#define M_PI_2 1.57079632679 /* pi/2 */
77#endif
78
79// funny printf() hacks:
80#ifdef ROAR_TARGET_WIN32
81#define LIBROAR__longlong long
82#define LIBROAR__ll       "l"
83#else
84#define LIBROAR__longlong long long
85#define LIBROAR__ll       "ll"
86#endif
87
88#if defined(ROAR_OS_NETBSD) && defined(ROAR_HAVE_FUNOPEN)
89#undef ROAR_HAVE_FUNOPEN
90#endif
91
92#endif
93
94//ll
Note: See TracBrowser for help on using the repository browser.