[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [patch] c99-isms

From: C. Michael Pilato <cmpilato_at_collab.net>
Date: Thu, 26 Mar 2009 12:11:49 -0400

Matthew Woehlke wrote:
> I'm trying to build svn 1.6.0 (and previously 1.5.6, which had the same
> problems) on one-and-a-half* machines that lack a c99 compiler. This
> causes problems because svn uses a c99 convention of initializing
> structs with "non-static" data.
>
> The attached patch is needed for compilation to succeed on these
> platforms. Generally speaking, these problems are:
> - struct initialization with "non-const" data
> - comma after last item in an enum
> - initialize function pointers to NULL (use '0' instead)
>
> (* The "half" is AIX, which has a c99-capable compiler, but autoconf is
> cleverly breaking it by picking -qlanglvl=ansi to get c89-compliance, at
> which point it fails to find the -qlanglvl option to turn on c99 support.)

Thanks, Matthew. I'm looking at your patch now.

-- 
C. Michael Pilato <cmpilato_at_collab.net>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=1431823

Received on 2009-03-26 17:14:08 CET

This is an archived mail posted to the Subversion Dev mailing list.