X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fio%2Fsocktest.cxx;h=9a4f0cfe7450ad666f2debbda90ac45c88bbcb8a;hb=3dcffc7df821bd8dfc4f4324b14f2af86305960f;hp=471f0ad6ca06b32cfc5f3406c8547b9e348e57a7;hpb=c6ad744ce22fd94cdf83ff876ed31e83af94cc41;p=simgear.git diff --git a/simgear/io/socktest.cxx b/simgear/io/socktest.cxx index 471f0ad6..9a4f0cfe 100644 --- a/simgear/io/socktest.cxx +++ b/simgear/io/socktest.cxx @@ -1,4 +1,16 @@ +#ifdef HAVE_CONFIG_H +# include +#endif + +#include + +#ifdef _WIN32 +#include +#define sleep(x) Sleep(x*1000) +#else #include +#endif +#include #include "sg_socket.hxx" #include "lowlevel.hxx" @@ -7,6 +19,10 @@ 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 ) {