mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-08 04:27:37 +00:00
25 lines
344 B
C
25 lines
344 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
#define MD5_WORD unsigned int
|
|
|
|
union {
|
|
char bytes[4];
|
|
MD5_WORD n;
|
|
} u;
|
|
|
|
void main()
|
|
{
|
|
u.n=0x03020100;
|
|
if (u.bytes[0] == 3)
|
|
printf("#define MD5_BIG_ENDIAN\n");
|
|
else if (u.bytes[0] == 0)
|
|
printf("#define MD5_LITTLE_ENDIAN\n");
|
|
else
|
|
{
|
|
printf("#error No endians!\n");
|
|
exit(1);
|
|
}
|
|
exit (0);
|
|
}
|