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

Re: What's cooking in git.git (Oct 2013, #07; Mon, 28)

From
Torsten Bögershausen <tboegi@web.de>
Date
Oct 30, 2013, 17:39 UTC
Message-ID
<5271443D.3070402@web.de>
In-Reply-To
<52713E67.3000202@web.de>
On 2013-10-30 18.14, Torsten Bögershausen wrote:
Show 31 quoted lines
> On 2013-10-30 18.01, Vicent Martí wrote:
>> On Wed, Oct 30, 2013 at 5:51 PM, Torsten Bögershausen <tboegi@web.de> wrote:
>>> There is a name clash under cygwin 1.7 (1.5 is OK)
>>> The following "first aid hot fix" works for me:
>>> /Torsten
>>
>> If Cygwin declares its own bswap_64, wouldn't it be better to use it
>> instead of overwriting it with our own?
> Yes,
> this will be part of a longer patch.
> I found that some systems have something like this:
> 
> #define htobe64(x) bswap_64(x)
> And bswap_64 is a function, so we can not detect it by "asking"
> #ifdef bswap_64
> ..
> #endif
> 
> 
> But we can use
> #ifdef htobe64
> ...
> #endif
> and this will be part of a bigger patch.
> 
> And, in general, we should avoid to introduce functions which may have a
> name clash.
> Using the git_ prefix for function names is a good practice.
> So in order to unbrake the compilation error under cygwin 17,
> the "hotfix" can be used.
> /Torsten

I just realized that there seem to problems to compile pu under msysgit. More investigation needed here.

Previous: Torsten BögershausenNext: Ramsay Jones
Message 6 of 15 in “What's cooking in git.git (Oct 2013, #07; Mon, 28)”
  1. Junio C HamanoOct 28, 2013
  2. Thomas RastOct 28, 2013
  3. Torsten BögershausenOct 30, 2013
  4. Vicent MartíOct 30, 2013
  5. Torsten BögershausenOct 30, 2013
  6. Torsten BögershausenOct 30, 2013
  7. Ramsay JonesOct 30, 2013
  8. Ramsay JonesOct 30, 2013
  9. Torsten BögershausenOct 30, 2013
  10. Ramsay JonesOct 30, 2013
  11. Torsten BögershausenOct 31, 2013
  12. Ramsay JonesNov 5, 2013
  13. Torsten BögershausenNov 6, 2013
  14. Jakub NarębskiNov 12, 2013
  15. Andreas EricssonNov 13, 2013

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.