mirror of
https://github.com/git/git.git
synced 2024-11-23 18:05:29 +08:00
Merge branch 'jk/guard-bswap-header'
The include file compat/bswap.h has been updated so that it is safe to (accidentally) include it more than once. * jk/guard-bswap-header: compat/bswap: add include header guards
This commit is contained in:
commit
2274fc75c3
@ -1,3 +1,6 @@
|
|||||||
|
#ifndef COMPAT_BSWAP_H
|
||||||
|
#define COMPAT_BSWAP_H
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Let's make sure we always have a sane definition for ntohl()/htonl().
|
* Let's make sure we always have a sane definition for ntohl()/htonl().
|
||||||
* Some libraries define those as a function call, just to perform byte
|
* Some libraries define those as a function call, just to perform byte
|
||||||
@ -210,3 +213,5 @@ static inline void put_be64(void *ptr, uint64_t value)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif /* COMPAT_BSWAP_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user