From: Junio C Hamano Date: Wed, 14 Nov 2007 21:25:13 GMT Subject: Re: [PATCH] Fix Solaris Workshop Compiler issues Message-ID: <7vprycfrk6.fsf@gitster.siamese.dyndns.org> In-Reply-To: <20071114204732.GE3973@steel.home> Alex Riesen writes: > Guido Ostkamp, Wed, Nov 14, 2007 21:31:13 +0100: >> ... >> cc: acomp failed for diff-delta.c >> make: *** [diff-delta.o] Error 2 >> >> This is because 'struct delta_index' is declared with no size in delta.h >> and with size in diff-delta.c which does not fit. > > Huh?! Ever heard of forward declaration? We are not the first people who pass around a pointer to an opaque struct in the API to hide away the implementation. It would be surprising if the Workshop Compiler chokes on this and not other projects.