]> git.mxchange.org Git - flightgear.git/blobdiff - src/Network/fg_file.hxx
UIUC flight model contribution. This is based on LaRCsim, but can read
[flightgear.git] / src / Network / fg_file.hxx
index 469be7b6f6c225eb90b5d11174afdf6f4ce1ae6b..4029825a5d8ed0be05a14ba831c66cf37786a7db 100644 (file)
 # error This library requires C++
 #endif
 
-#include "Include/compiler.h"
+#include <simgear/compiler.h>
 
 #include <string>
 
 #include <sys/types.h>         // for open(), read(), write(), close()
 #include <sys/stat.h>          // for open(), read(), write(), close()
 #include <fcntl.h>             // for open(), read(), write(), close()
-#include <unistd.h>            // for open(), read(), write(), close()
+#if !defined( _MSC_VER )
+#  include <unistd.h>          // for open(), read(), write(), close()
+#endif
 
 #include "iochannel.hxx"
 #include "protocol.hxx"
@@ -66,6 +68,9 @@ public:
     // write data to a file
     int write( char *buf, int length );
 
+    // write null terminated string to a file
+    int writestring( char *str );
+
     // close file
     bool close();