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.

63 lines
1.8KB

  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. #ifndef pthread_t
  32. typedef HANDLE pthread_t;
  33. #endif
  34. #elif __MINGW32__ /* MINGW */
  35. #include <stdint.h>
  36. #include <sys/types.h>
  37. #ifndef pthread_t
  38. typedef HANDLE pthread_t;
  39. #endif
  40. #else /* other compilers ...*/
  41. #include <inttypes.h>
  42. #include <pthread.h>
  43. #include <sys/types.h>
  44. #endif
  45. #endif /* WIN32 */
  46. #if defined(__APPLE__) || defined(__linux__) || defined(__sun__) || defined(sun) || defined(__unix__)
  47. #include <inttypes.h>
  48. #include <pthread.h>
  49. #include <sys/types.h>
  50. #endif /* __APPLE__ || __linux__ || __sun__ || sun */
  51. #endif