diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2019-06-13 04:49:45 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-06-13 09:34:16 -0700 |
commit | 08e0450690b8f4aa0f51d8c096520817f96de3dd (patch) | |
tree | b799fe103ad64441ef19355663ef772d42bbdfeb /Documentation | |
parent | 8d4679fe0995affd40301169fbfe6d679561bc64 (diff) | |
download | git-08e0450690b8f4aa0f51d8c096520817f96de3dd.tar.gz |
kwset: allow building with GCC 8
The kwset functionality makes use of the obstack code, which expects to
be handed a function that can allocate large chunks of data. It expects
that function to accept a `size` parameter of type `long`.
This upsets GCC 8 on Windows, because `long` does not have the same
bit size as `size_t` there.
Now, the proper thing to do would be to switch to `size_t`. But this
would make us deviate from the "upstream" code even further, making it
hard to synchronize with newer versions, and also it would be quite
involved because that `long` type is so invasive in that code.
Let's punt, and instead provide a super small wrapper around
`xmalloc()`.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions