From 03c5d1c0475edf1bcfdbf24e25b459585e70c654 Mon Sep 17 00:00:00 2001 From: sletz Date: Mon, 5 Nov 2007 11:38:43 +0000 Subject: [PATCH] Correct types.h for use with MINGW on Windows. git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@1703 0c269be4-1314-0410-8aa9-9f06e86f4224 --- ChangeLog | 6 ++++-- common/jack/types.h | 24 ++++++++++++++---------- 2 files changed, 18 insertions(+), 12 deletions(-) diff --git a/ChangeLog b/ChangeLog index ceae2029..9a804188 100644 --- a/ChangeLog +++ b/ChangeLog @@ -8,7 +8,8 @@ Thom Johansen Thibault LeMeur Pieter Palmers Tom Szilagyi -Andrzej Szombierski +Andrzej Szombierski +Kjetil S.Matheussen --------------------------- Jackdmp changes log @@ -16,7 +17,8 @@ Andrzej Szombierski 2007-11-05 Stephane Letz - * Use of JackWinSemaphore instead of JackWinEvent for inter-process synchronization. + * Use of JackWinSemaphore instead of JackWinEvent for inter-process synchronization. + * Correct types.h for use with MINGW on Windows. 2007-11-04 Stephane Letz diff --git a/common/jack/types.h b/common/jack/types.h index 82c3fbd3..a0d3a81c 100644 --- a/common/jack/types.h +++ b/common/jack/types.h @@ -22,17 +22,21 @@ #define __jack_types_h__ #ifdef WIN32 - #include - typedef char int8_t; - typedef unsigned char uint8_t; - typedef short int16_t; - typedef unsigned short uint16_t; - typedef long int32_t; - typedef unsigned long uint32_t; - typedef LONGLONG int64_t; - typedef ULONGLONG uint64_t; +#include +#ifndef __MINGW32__ +typedef long int32_t; +typedef unsigned long uint32_t; #else - #include +#include +#endif +typedef char int8_t; +typedef unsigned char uint8_t; +typedef short int16_t; +typedef unsigned short uint16_t; +typedef LONGLONG int64_t; +typedef ULONGLONG uint64_t; +#else +#include #endif typedef int32_t jack_shmsize_t;