]> git.mxchange.org Git - simgear.git/blobdiff - simgear/io/socktest.cxx
remove CopyPolicy from ModelRegistry
[simgear.git] / simgear / io / socktest.cxx
index 471f0ad6ca06b32cfc5f3406c8547b9e348e57a7..83adfd2742cc22be9a5fbd2628d62b051c298323 100644 (file)
@@ -1,4 +1,11 @@
+#ifdef HAVE_CONFIG_H
+#  include <simgear_config.h>
+#endif
+
+#include <simgear/compiler.h>
+
 #include <unistd.h>
+#include <iostream>
 
 #include "sg_socket.hxx"
 #include "lowlevel.hxx"
@@ -7,6 +14,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 ) {
@@ -33,6 +44,10 @@ int main() {
        if ( s.readline( buf, 256 ) > 0 ) {
            cout << "result = " << buf;
        }
+#ifdef __MINGW32__
+       Sleep(100);
+#else
        sleep(1);
+#endif
     }
 }