From ed24e0277521673068f4e9f81e39cf44772f14af Mon Sep 17 00:00:00 2001 From: Nikos Barkas Date: Wed, 8 Feb 2012 07:32:36 +0000 Subject: [PATCH] Fixed error in SDL builds. git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4767 127b21dd-08f5-0310-b4b7-95ae10353056 --- src/Core/Materials/OODefaultShaderSynthesizer.m | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Core/Materials/OODefaultShaderSynthesizer.m b/src/Core/Materials/OODefaultShaderSynthesizer.m index 18fce275..c1d184a0 100644 --- a/src/Core/Materials/OODefaultShaderSynthesizer.m +++ b/src/Core/Materials/OODefaultShaderSynthesizer.m @@ -35,6 +35,16 @@ SOFTWARE. #import "NSDictionaryOOExtensions.h" #import "OOMaterialSpecifier.h" +/* + * GNUstep 1.20.1 does not support NSIntegerHashCallBacks but uses + * NSIntHashCallBacks instead. NSIntHashCallBacks was deprecated in favor of + * NSIntegerHashCallBacks in GNUstep versions later than 1.20.1. If we move to + * a newer GNUstep version for Oolite the #define below may not be necessary + * anymore but for now we need it to be able to build. - Nikos 20120208. +*/ +#ifdef OOLITE_GNUSTEP +#define NSIntegerHashCallBacks NSIntHashCallBacks +#endif @interface OODefaultShaderSynthesizer: NSObject {