git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] wcwidth redeclaration

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
May 8, 2007, 10:03 UTC
Message-ID
<Pine.LNX.4.64.0705081202080.4167@racer.site>
In-Reply-To
<7vmz0f52no.fsf@assigned-by-dhcp.cox.net>
Hi,
On Mon, 7 May 2007, Junio C Hamano wrote:
Show 15 quoted lines
> apw@us.ibm.com (Amos Waterland) writes:
> 
> > Build fails for git 1.5.1.3 on AIX, with the message: 
> >
> > utf8.c:66: error: conflicting types for 'wcwidth'
> > /.../lib/gcc/powerpc-ibm-aix5.3.0.0/4.0.3/include/string.h:266: error: previous declaration of 'wcwidth' was here
> >
> > Here is a patch that fixes it for me.  If there is a different way that
> > is preferred, please let me know.
> 
> It's static in that file, so renaming our version to our own
> name as you did is perfectly good.
> 
> Thanks for helping, as not many people seem to be on AIX on this
> list.

Thanks indeed. I thought that a static function could shadow a global function, but probably not with a different signature. Just out of curiosity: what is the signature of wcwidth in your string.h?

Ciao, Dscho

Previous: Junio C HamanoNext: Amos Waterland
Message 3 of 4 in “wcwidth redeclaration”
  1. wcwidth redeclarationAmos Waterland, May 8, 2007
  2. Junio C HamanoMay 8, 2007
  3. Johannes SchindelinMay 8, 2007
  4. Amos WaterlandMay 8, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.