]> git.mxchange.org Git - simgear.git/blobdiff - simgear/io/socktest.cxx
MINGW patch from BenoƮt Laniel
[simgear.git] / simgear / io / socktest.cxx
index 471f0ad6ca06b32cfc5f3406c8547b9e348e57a7..9a4f0cfe7450ad666f2debbda90ac45c88bbcb8a 100644 (file)
@@ -1,4 +1,16 @@
+#ifdef HAVE_CONFIG_H
+#  include <simgear_config.h>
+#endif
+
+#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"
 #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 ) {