X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fio%2Flowtest.cxx;h=85ecf6b3378a3a8617209f1520d19eca625a5a8c;hb=dc09a50472890ac706d3c76d8af34cc3682ada0c;hp=a808915cff55a9f5bd2b2f15161eb16439a2eab6;hpb=12620b615281eb0567ce13b350222bb7003bdce2;p=simgear.git diff --git a/simgear/io/lowtest.cxx b/simgear/io/lowtest.cxx index a808915c..85ecf6b3 100644 --- a/simgear/io/lowtest.cxx +++ b/simgear/io/lowtest.cxx @@ -1,16 +1,16 @@ -#ifdef HAVE_CONFIG_H -#include -#endif - #include #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 "; @@ -21,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);