+#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"
#define sgIsLittleEndian (*((char *) &sgEndianTest ) != 0)
#define sgIsBigEndian (*((char *) &sgEndianTest ) == 0)
+using std::cout;
+using std::endl;
+
+
int main() {
if ( sgIsLittleEndian ) {