#include <simgear/compiler.h>
+#ifdef _WIN32
+#include <windows.h>
+#define sleep(x) Sleep(x*1000)
+#else
#include <unistd.h>
+#endif
#include <iostream>
#include "sg_socket.hxx"
#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() {
if ( s.readline( buf, 256 ) > 0 ) {
cout << "result = " << buf;
}
-#ifdef __MINGW32__
- Sleep(100);
-#else
sleep(1);
-#endif
}
}