Jack2 1.9.8
|
00001 /* 00002 Copyright (C) 2004-2009 Grame 00003 00004 This program is free software; you can redistribute it and/or modify 00005 it under the terms of the GNU Lesser General Public License as published by 00006 the Free Software Foundation; either version 2.1 of the License, or 00007 (at your option) any later version. 00008 00009 This program is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 GNU General Public License for more details. 00013 00014 You should have received a copy of the GNU General Public License 00015 along with this program; if not, write to the Free Software 00016 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00017 00018 */ 00019 00020 #ifndef __jack_systemdeps_h__ 00021 #define __jack_systemdeps_h__ 00022 00023 #if defined(WIN32) && !defined(__CYGWIN__) && !defined(GNU_WIN32) 00024 00025 #include <windows.h> 00026 00027 #ifdef _MSC_VER /* Microsoft compiler */ 00028 #define __inline__ inline 00029 #if (!defined(int8_t) && !defined(_STDINT_H)) 00030 #define __int8_t_defined 00031 typedef char int8_t; 00032 typedef unsigned char uint8_t; 00033 typedef short int16_t; 00034 typedef unsigned short uint16_t; 00035 typedef long int32_t; 00036 typedef unsigned long uint32_t; 00037 typedef LONGLONG int64_t; 00038 typedef ULONGLONG uint64_t; 00039 #endif 00040 #elif __MINGW32__ /* MINGW */ 00041 #include <stdint.h> 00042 #include <sys/types.h> 00043 #else /* other compilers ...*/ 00044 #include <inttypes.h> 00045 #include <pthread.h> 00046 #include <sys/types.h> 00047 #endif 00048 00049 #if !defined(_PTHREAD_H) && !defined(PTHREAD_WIN32) 00050 00054 typedef HANDLE jack_native_thread_t; 00055 #else 00056 #ifdef PTHREAD_WIN32 // Added by JE - 10-10-2011 00057 #include <ptw32/pthread.h> // Makes sure we #include the ptw32 version ! 00058 #endif 00059 00063 typedef pthread_t jack_native_thread_t; 00064 #endif 00065 00066 #endif // WIN32 && !__CYGWIN__ && !GNU_WIN32 */ 00067 00068 #if defined(__APPLE__) || defined(__linux__) || defined(__sun__) || defined(sun) || defined(__unix__) || defined(__CYGWIN__) || defined(GNU_WIN32) 00069 00070 #if defined(__CYGWIN__) || defined(GNU_WIN32) 00071 #include <stdint.h> 00072 #endif 00073 #include <inttypes.h> 00074 #include <pthread.h> 00075 #include <sys/types.h> 00076 00081 typedef pthread_t jack_native_thread_t; 00082 00083 #endif /* __APPLE__ || __linux__ || __sun__ || sun */ 00084 00085 #endif