0027105: Make code ISO-compliant [-Wpedantic fixes]
[occt.git] / src / OSD / OSD_Disk.cxx
index f695849..20a3bba 100644 (file)
 
 #ifndef _WIN32
 
-#include <OSD_Disk.ixx>
+
+#include <OSD_Disk.hxx>
+#include <OSD_OSDError.hxx>
+#include <OSD_Path.hxx>
 #include <OSD_WhoAmI.hxx>
 
 const OSD_WhoAmI Iam = OSD_WDisk;
@@ -29,7 +32,11 @@ extern "C" {
   #define fstatvfs fstatfs
 #else
   #include <sys/statvfs.h>
-  int statvfs(const char *, struct statvfs *);
+  #ifdef __GNU_LIBRARY__
+    int statvfs(const char *, struct statvfs *) __THROW;
+  #else
+    int statvfs(const char *, struct statvfs *);
+  #endif
 #endif
 
 #ifdef __cplusplus
@@ -154,7 +161,11 @@ Standard_Integer OSD_Disk::Error()const{
 //-------------------------------------------------------------------------------
 
 #define STRICT
-#include <OSD_Disk.ixx>
+
+
+#include <OSD_Disk.hxx>
+#include <OSD_OSDError.hxx>
+#include <OSD_Path.hxx>
 #include <Standard_ProgramError.hxx>
 
 #include <windows.h>