mirror of
https://github.com/reactos/CMake.git
synced 2024-11-27 13:30:39 +00:00
18 lines
306 B
C
18 lines
306 B
C
#ifdef __CLASSIC_C__
|
|
int main(){
|
|
int ac;
|
|
char*av[];
|
|
#else
|
|
int main(int ac, char*av[]){
|
|
#endif
|
|
/* Are we little or big endian? From Harbison&Steele. */
|
|
union
|
|
{
|
|
long l;
|
|
char c[sizeof (long)];
|
|
} u;
|
|
u.l = 1;
|
|
if(ac > 1000){return *av[0];}
|
|
return (u.c[sizeof (long) - 1] == 1)?1:0;
|
|
}
|