X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fio%2Fsocktest.cxx;h=9a4f0cfe7450ad666f2debbda90ac45c88bbcb8a;hb=72bb9f4d5d6d861902a5779381e4ebe977db1df1;hp=38c38a6e98272621319b8605b1563bbd0e018631;hpb=30a14741c9d433abbb3986200e235db2edb93f36;p=simgear.git diff --git a/simgear/io/socktest.cxx b/simgear/io/socktest.cxx index 38c38a6e..9a4f0cfe 100644 --- a/simgear/io/socktest.cxx +++ b/simgear/io/socktest.cxx @@ -1,20 +1,28 @@ +#ifdef HAVE_CONFIG_H +# include +#endif + #include +#ifdef _WIN32 +#include +#define sleep(x) Sleep(x*1000) +#else #include -#include STL_IOSTREAM +#endif +#include #include "sg_socket.hxx" #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) +using std::cout; +using std::endl; + + int main() { if ( sgIsLittleEndian ) {