#include STL_IOSTREAM
#include "lowlevel.hxx"
-#if !defined(SG_HAVE_NATIVE_SGI_COMPILERS)
-SG_USING_STD(cout);
-SG_USING_STD(endl);
-#endif
-
static const int sgEndianTest = 1;
#define sgIsLittleEndian (*((char *) &sgEndianTest ) != 0)
#define sgIsBigEndian (*((char *) &sgEndianTest ) == 0)
+SG_USING_STD(cout);
+SG_USING_STD(endl);
+
int main() {
cout << "This machine is ";
double x = 1111111111;
cout << "double x = " << x << endl;
- sgEndianSwap((unsigned long long *)&x);
+ sgEndianSwap((uint64_t *)&x);
cout << "double x = " << x << endl;
- sgEndianSwap((unsigned long long *)&x);
+ sgEndianSwap((uint64_t *)&x);
cout << "double x = " << x << endl;
}