]> git.mxchange.org Git - simgear.git/blobdiff - simgear/io/lowtest.cxx
Cygwin fixes.
[simgear.git] / simgear / io / lowtest.cxx
index e588f2c35601baf2df7f0b23a624385a9ea81802..924e1e113a107c8eb50ff9683dafdb7fb088a2ec 100644 (file)
@@ -3,10 +3,14 @@
 #include STL_IOSTREAM
 #include "lowlevel.hxx"
 
+
 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 ";
@@ -17,6 +21,8 @@ int main() {
     }
     cout << "endian" << endl;
 
+    cout << "sizeof(short) = " << sizeof(short) << endl;
+
     short s = 1111;
     cout << "short s = " << s << endl;
     sgEndianSwap((unsigned short *)&s);
@@ -33,8 +39,8 @@ int main() {
 
     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;
 }