Jack2  1.9.8
systemdeps.h
1 /*
2 Copyright (C) 2004-2009 Grame
3 
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU Lesser General Public License as published by
6 the Free Software Foundation; either version 2.1 of the License, or
7 (at your option) any later version.
8 
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13 
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17 
18 */
19 
20 #ifndef __jack_systemdeps_h__
21 #define __jack_systemdeps_h__
22 
23 #if defined(WIN32) && !defined(__CYGWIN__) && !defined(GNU_WIN32)
24 
25 #include <windows.h>
26 
27 #ifdef _MSC_VER /* Microsoft compiler */
28  #define __inline__ inline
29  #if (!defined(int8_t) && !defined(_STDINT_H))
30  #define __int8_t_defined
31  typedef char int8_t;
32  typedef unsigned char uint8_t;
33  typedef short int16_t;
34  typedef unsigned short uint16_t;
35  typedef long int32_t;
36  typedef unsigned long uint32_t;
37  typedef LONGLONG int64_t;
38  typedef ULONGLONG uint64_t;
39  #endif
40 #elif __MINGW32__ /* MINGW */
41  #include <stdint.h>
42  #include <sys/types.h>
43 #else /* other compilers ...*/
44  #include <inttypes.h>
45  #include <pthread.h>
46  #include <sys/types.h>
47 #endif
48 
49 #if !defined(_PTHREAD_H) && !defined(PTHREAD_WIN32)
50 
54  typedef HANDLE jack_native_thread_t;
55 #else
56  #ifdef PTHREAD_WIN32 // Added by JE - 10-10-2011
57  #include <ptw32/pthread.h> // Makes sure we #include the ptw32 version !
58  #endif
59 
63  typedef pthread_t jack_native_thread_t;
64 #endif
65 
66 #endif // WIN32 && !__CYGWIN__ && !GNU_WIN32 */
67 
68 #if defined(__APPLE__) || defined(__linux__) || defined(__sun__) || defined(sun) || defined(__unix__) || defined(__CYGWIN__) || defined(GNU_WIN32)
69 
70 #if defined(__CYGWIN__) || defined(GNU_WIN32)
71  #include <stdint.h>
72 #endif
73  #include <inttypes.h>
74  #include <pthread.h>
75  #include <sys/types.h>
76 
81  typedef pthread_t jack_native_thread_t;
82 
83 #endif /* __APPLE__ || __linux__ || __sun__ || sun */
84 
85 #endif

Generated for Jack2 by doxygen 1.8.1.1