diff options
author | Eric Wong <normalperson@yhbt.net> | 2006-09-06 09:26:51 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2006-09-06 09:26:51 +0000 |
commit | 412cb1ee105a74999a3ffac4e60e6602c5f2e541 (patch) | |
tree | fc8b9e117fc3ff5eaf0f55113be9dc89418b7a6f /bs/deftypes.c | |
parent | 7b6d45f50fa49f4da56cc4ae29758a01ec958792 (diff) | |
download | mpd-412cb1ee105a74999a3ffac4e60e6602c5f2e541.tar.gz mpd-412cb1ee105a74999a3ffac4e60e6602c5f2e541.tar.xz mpd-412cb1ee105a74999a3ffac4e60e6602c5f2e541.zip |
bs: a work in progress..
git-svn-id: https://svn.musicpd.org/mpd/trunk@4737 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'bs/deftypes.c')
-rw-r--r-- | bs/deftypes.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/bs/deftypes.c b/bs/deftypes.c new file mode 100644 index 000000000..dad9b58a8 --- /dev/null +++ b/bs/deftypes.c @@ -0,0 +1,18 @@ +#include <stdio.h> + +int main(int argc, char argv[]) +{ + long one = 1; + puts( *((char *)(&one)) ? "/* #undef WORDS_BIGENDIAN */" + : "#define WORDS_BIGENDIAN" ); + printf( "#define SIZEOF_INT %ld\n" + "#define SIZEOF_LONG %ld\n" + "#define SIZEOF_LONG_LONG %ld\n" + "#define SIZEOF_SHORT %ld\n", + (long int)(sizeof(int)), + (long int)(sizeof(long)), + (long int)(sizeof(long long)), + (long int)(sizeof(short)) ); + + return 0; +} |