#include<iostream>#include<cstdlib>usingnamespacestd;#include"endianPPC.h"#ifndef _MSC_VER#include<sys/param.h>#include<endian.h>#endifboolisBigEndian(void){#ifdef BYTE_ORDERreturnBYTE_ORDER==BIG_ENDIAN;#elif defined _MSC_VERreturntrue;// It doesn't run on anything except x86, right?#elsereturn__BYTE_ORDER==__BIG_ENDIAN;#endif}