biod.pnpi.spb.ru
/
alexxy
/
gromacs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix MingW build
[alexxy/gromacs.git]
/
src
/
gromacs
/
gmxlib
/
checkpoint.c
diff --git
a/src/gromacs/gmxlib/checkpoint.c
b/src/gromacs/gmxlib/checkpoint.c
index 016c67976dd465e5450f35ba8f7393b161943935..18c0a312a61cd3940d1c7d84573ff7f501935137 100644
(file)
--- a/
src/gromacs/gmxlib/checkpoint.c
+++ b/
src/gromacs/gmxlib/checkpoint.c
@@
-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