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
Merge release-5-0 into master
[alexxy/gromacs.git]
/
src
/
gromacs
/
gmxlib
/
checkpoint.cpp
diff --git
a/src/gromacs/gmxlib/checkpoint.cpp
b/src/gromacs/gmxlib/checkpoint.cpp
index 9162172255cd75e9164027d12f1717640173565d..b2c9c37e9704f25be89963b3a9893a7e9605d61a 100644
(file)
--- a/
src/gromacs/gmxlib/checkpoint.cpp
+++ b/
src/gromacs/gmxlib/checkpoint.cpp
@@
-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