Cleanup systemdeps.h on Windows.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3331 0c269be4-1314-0410-8aa9-9f06e86f4224
This commit is contained in:
sletz 2009-02-20 15:51:03 +00:00 committed by Filipe Coelho
parent 1dea4f5411
commit f70dd81b9d
1 changed files with 36 additions and 26 deletions

View File

@ -24,11 +24,9 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#include <windows.h>
#ifdef __MINGW32__
#include <stdint.h>
#include <sys/types.h>
#else
#ifdef _MSC_VER /* Microsoft compiler */
#define __inline__ inline
#ifndef int8_t
typedef char int8_t;
typedef unsigned char uint8_t;
typedef short int16_t;
@ -38,18 +36,30 @@ typedef unsigned long uint32_t;
typedef LONGLONG int64_t;
typedef ULONGLONG uint64_t;
#endif
#ifndef pthread_t
typedef HANDLE pthread_t;
typedef int64_t _jack_time_t;
#endif // WIN32 */
#if defined(__APPLE__) || defined(__linux__) || defined(__sun__) || defined(sun)
#endif
#elif __MINGW32__ /* MINGW */
#include <stdint.h>
#include <sys/types.h>
#ifndef pthread_t
typedef HANDLE pthread_t;
#endif
#else /* other compilers ...*/
#include <inttypes.h>
#include <pthread.h>
#include <sys/types.h>
#endif
typedef int64_t _jack_time_t;
#endif /* WIN32 */
#if defined(__APPLE__) || defined(__linux__) || defined(__sun__) || defined(sun)
#include <inttypes.h>
#include <pthread.h>
#include <sys/types.h>
typedef uint64_t _jack_time_t;
#endif // __APPLE__ || __linux__ */
#endif /* __APPLE__ || __linux__ || __sun__ || sun */
#endif