From ed730dcfa1642540fcaa962aa6b01c66889dda25 Mon Sep 17 00:00:00 2001 From: Riccardo Mottola Date: Thu, 11 Nov 2010 20:32:28 +0000 Subject: [PATCH] Complete includes and use typedef instead of #define git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/performance/trunk@31602 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 8 ++++++++ GSIOThreadPool.h | 2 +- GSIOThreadPool.m | 1 + GSLinkedList.h | 2 +- GSSkipMutableArray.m | 2 +- GSThreadPool.h | 1 + GSThreadPool.m | 2 ++ 7 files changed, 15 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1c37ec5..3a81b97 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,14 @@ * GSCache.m use always class_getInstanceSize() on GNUSTEP for all runtimes and define a compatibility macro for old macs + + * GSThreadPool.h + * GSLinkedList.h + * GSThreadPool.m + * GSSkipMutableArray.m + * GSIOThreadPool.h + * GSIOThreadPool.m + Complete includes and use typedef instead of #define 2010-11-11 Richard Frith-Macdonald diff --git a/GSIOThreadPool.h b/GSIOThreadPool.h index 4694b5f..518ac72 100644 --- a/GSIOThreadPool.h +++ b/GSIOThreadPool.h @@ -25,7 +25,7 @@ #import #if !defined (GNUSTEP) && (MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_4) -#define NSUInteger unsigned int +typedef unsigned int NSUInteger; #endif @class NSThread; diff --git a/GSIOThreadPool.m b/GSIOThreadPool.m index b3f9354..e7f35d2 100644 --- a/GSIOThreadPool.m +++ b/GSIOThreadPool.m @@ -27,6 +27,7 @@ #import #import #import +#import #import "GSIOThreadPool.h" @interface GSIOThread : NSThread diff --git a/GSLinkedList.h b/GSLinkedList.h index d74d47d..ff98a2f 100644 --- a/GSLinkedList.h +++ b/GSLinkedList.h @@ -25,7 +25,7 @@ #import #if !defined (GNUSTEP) && (MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_4) -#define NSUInteger unsigned int +typedef unsigned int NSUInteger; #endif @class GSLinkedList; diff --git a/GSSkipMutableArray.m b/GSSkipMutableArray.m index e728be8..a1220b6 100644 --- a/GSSkipMutableArray.m +++ b/GSSkipMutableArray.m @@ -31,7 +31,7 @@ #import "GSIndexedSkipList.h" #if !defined (GNUSTEP) && (MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_4) -#define NSUInteger unsigned int +typedef unsigned int NSUInteger; #endif static Class abstractClass = 0; diff --git a/GSThreadPool.h b/GSThreadPool.h index df693ea..23399ce 100644 --- a/GSThreadPool.h +++ b/GSThreadPool.h @@ -23,6 +23,7 @@ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA. */ #import +#import @class GSLinkedList; @class NSLock; diff --git a/GSThreadPool.m b/GSThreadPool.m index 08a3dfa..8dc7382 100644 --- a/GSThreadPool.m +++ b/GSThreadPool.m @@ -1,7 +1,9 @@ #include "GSLinkedList.h" #include "GSThreadPool.h" +#include #include #include +#include @class GSThreadPool;