mpd/bs/deftypes.c
Eric Wong 412cb1ee10 bs: a work in progress..
git-svn-id: https://svn.musicpd.org/mpd/trunk@4737 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2006-09-06 09:26:51 +00:00

19 lines
428 B
C

#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;
}