+#ifdef HAVE_CONFIG_H
+# include <simgear_config.h>
+#endif
+
#include <simgear/compiler.h>
#include <unistd.h>
#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 ) {
if ( s.readline( buf, 256 ) > 0 ) {
cout << "result = " << buf;
}
+#ifdef __MINGW32__
+ Sleep(100);
+#else
sleep(1);
+#endif
}
}