Fix MingW build
[alexxy/gromacs.git] / src / gromacs / gmxlib / checkpoint.c
index 016c67976dd465e5450f35ba8f7393b161943935..18c0a312a61cd3940d1c7d84573ff7f501935137 100644 (file)
@@ -177,7 +177,11 @@ gmx_wintruncate(const char *filename, __int64 size)
         return -1;
     }
 
+#ifdef _MSC_VER
     return _chsize_s( fileno(fp), size);
+#else
+    return _chsize( fileno(fp), size);
+#endif
 #endif
 }
 #endif