X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fio%2Flowtest.cxx;h=eae27f34d42d4f12ad03ff46442f2af27621dd72;hb=1f37095087fa7aa3d210ba134058b86c3bd6d69e;hp=85ecf6b3378a3a8617209f1520d19eca625a5a8c;hpb=78411d29a7fdd606e50a81d03d6e8a08dcb15828;p=simgear.git diff --git a/simgear/io/lowtest.cxx b/simgear/io/lowtest.cxx index 85ecf6b3..eae27f34 100644 --- a/simgear/io/lowtest.cxx +++ b/simgear/io/lowtest.cxx @@ -1,6 +1,6 @@ #include -#include STL_IOSTREAM +#include #include "lowlevel.hxx" @@ -8,8 +8,8 @@ static const int sgEndianTest = 1; #define sgIsLittleEndian (*((char *) &sgEndianTest ) != 0) #define sgIsBigEndian (*((char *) &sgEndianTest ) == 0) -SG_USING_STD(cout); -SG_USING_STD(endl); +using std::cout; +using std::endl; int main() { @@ -25,22 +25,22 @@ int main() { short s = 1111; cout << "short s = " << s << endl; - sgEndianSwap((unsigned short *)&s); + sgEndianSwap((uint16_t *)&s); cout << "short s = " << s << endl; - sgEndianSwap((unsigned short *)&s); + sgEndianSwap((uint16_t *)&s); cout << "short s = " << s << endl; int i = 1111111; cout << "int i = " << i << endl; - sgEndianSwap((unsigned int *)&i); + sgEndianSwap((uint32_t *)&i); cout << "int i = " << i << endl; - sgEndianSwap((unsigned int *)&i); + sgEndianSwap((uint32_t *)&i); cout << "int i = " << i << endl; 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; }