Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-03-11 10:16:25 +0300
committerJunio C Hamano <gitster@pobox.com>2019-03-11 10:16:25 +0300
commit2274fc75c33a8a1a551899e78e7746f311470d6f (patch)
tree2a07120bd1e35982914e9091187d7057304f8192 /compat
parent0f519aba51645d26431ce716e4136dc47dbba925 (diff)
parent33aa579a5568451a34ea08d1ecf336480ba846a3 (diff)
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
Diffstat (limited to 'compat')
-rw-r--r--compat/bswap.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/compat/bswap.h b/compat/bswap.h
index 5078ce5ecc..e4e25735ce 100644
--- a/compat/bswap.h
+++ b/compat/bswap.h
@@ -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().
* 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 /* COMPAT_BSWAP_H */