projects
/
platform
/
upstream
/
multipath-tools.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[kpartx] bug fixes for dos extended partition [3/4]
[platform/upstream/multipath-tools.git]
/
kpartx
/
byteorder.h
1
#ifndef BYTEORDER_H_INCLUDED
2
#define BYTEORDER_H_INCLUDED
3
4
#ifdef __linux__
5
# include <endian.h>
6
# include <byteswap.h>
7
#else
8
# error unsupported
9
#endif
10
11
#if BYTE_ORDER == LITTLE_ENDIAN
12
# define le32_to_cpu(x) (x)
13
#elif BYTE_ORDER == BIG_ENDIAN
14
# define le32_to_cpu(x) bswap_32(x)
15
#else
16
# error unsupported
17
#endif
18
19
#endif /* BYTEORDER_H_INCLUDED */