]> git.mxchange.org Git - simgear.git/blobdiff - simgear/io/socktest.cxx
Update the SoundSample api so we can request that a copy of the sample be
[simgear.git] / simgear / io / socktest.cxx
index 38c38a6e98272621319b8605b1563bbd0e018631..2586b42cd51cbfd5f823bf21a40a2fe76d387131 100644 (file)
@@ -6,15 +6,14 @@
 #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)
 
+SG_USING_STD(cout);
+SG_USING_STD(endl);
+
+
 int main() {
 
     if ( sgIsLittleEndian ) {
@@ -41,6 +40,10 @@ int main() {
        if ( s.readline( buf, 256 ) > 0 ) {
            cout << "result = " << buf;
        }
+#ifdef __MINGW32__
+       Sleep(100);
+#else
        sleep(1);
+#endif
     }
 }