]> git.mxchange.org Git - simgear.git/blobdiff - simgear/io/lowtest.cxx
Mac OS X fixes from Markus Morawitz
[simgear.git] / simgear / io / lowtest.cxx
index 843c13f9756d9d40a513dcd40176a58c8c29fa34..85ecf6b3378a3a8617209f1520d19eca625a5a8c 100644 (file)
@@ -3,16 +3,14 @@
 #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 ";
@@ -23,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);