jack2 codebase
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

74 lines
2.2KB

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