Skip to content

SHA1DC update#4258

Merged
ethomson merged 2 commits intolibgit2:masterfrom
pks-t:pks/sha1dc-update
Jun 8, 2017
Merged

SHA1DC update#4258
ethomson merged 2 commits intolibgit2:masterfrom
pks-t:pks/sha1dc-update

Conversation

@pks-t
Copy link
Copy Markdown
Member

@pks-t pks-t commented Jun 7, 2017

Upstream has fixed issues with both endianess and unaligned access, which we obviously want to include, as well. Furthermore, they have provided a mechanism to use custom includes, which we now use to include our "common.h" instead of the system standard includes. This should also improve our cross-platform compatibility.

pks-t added 2 commits June 7, 2017 14:50
This updates our version of SHA1DC to e139984 (Merge pull request libgit2#35
from lidl/master, 2017-05-30).
The updated SHA1DC library allows us to use custom includes instead of
using standard includes. Due to requirements with cross-platform, we
provide some custom system includes files like for example the
"stdint.h" file on Win32. Because of this, we want to make sure to avoid
breaking cross-platform compatibility when SHA1DC is enabled.

To use the new mechanism, we can simply define
`SHA1DC_NO_STANDARD_INCLUDES`. Furthermore, we can specify custom
include files via two defines, which we now use to include our
"common.h" header.
@ethomson ethomson merged commit 3a8801a into libgit2:master Jun 8, 2017
@ethomson
Copy link
Copy Markdown
Member

ethomson commented Jun 8, 2017

Thanks for staying on top of this.

@pks-t pks-t deleted the pks/sha1dc-update branch August 25, 2017 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants