]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/netpbm/files/oeendiangen
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / netpbm / files / oeendiangen
1 #!/bin/sh
2 #
3 # This replaces 'endiangen' for OpenEmbedded.  OE builds can rely on
4 # the GNU endian.h, however this generates __ names, (unless __USE_BSD
5 # is set) so we need to deal with this.  Match the output of endiangen.
6 cat <<EOF
7 #ifndef OE_ENDIAN_H
8 #define OE_ENDIAN_H 1
9 #include <ctype.h>
10 #include <endian.h>
11
12 #ifndef LITTLE_ENDIAN
13 # define LITTLE_ENDIAN  __LITTLE_ENDIAN
14 #endif
15 #ifndef BIG_ENDIAN
16 # define BIG_ENDIAN     __BIG_ENDIAN
17 #endif
18 #ifndef PDP_ENDIAN
19 # define PDP_ENDIAN     __PDP_ENDIAN
20 #endif
21 #ifndef BYTE_ORDER
22 # define BYTE_ORDER     __BYTE_ORDER
23 #endif
24
25 #ifndef BITS_PER_WORD
26 # include <bits/wordsize.h>
27 # define BITS_PER_WORD __WORDSIZE
28 #endif
29 #endif
30 EOF