summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMagnus Lundborg <lundborg.magnus@gmail.com>2014-10-24 08:11:38 (GMT)
committerMagnus Lundborg <lundborg.magnus@gmail.com>2014-10-24 08:11:38 (GMT)
commit41e0d4b9bd58bd19038c90b66e71d369ef5d325e (patch)
tree281c02fa168d440a43dc14825328e32b95c58908 /src
parent591770e202163c3040432a44fdd283ff669d56df (diff)
Fix MingW build.
Corresponds to commit e8cba2b9001c5930ed9d52e0be7ff53a2b00b22c by Roland Schulz in the GROMACS repo. Change-Id: Icb2c5b8ce823ffeed4145a9fd415c4624d15de2e
Diffstat (limited to 'src')
-rw-r--r--src/lib/tng_io.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/lib/tng_io.c b/src/lib/tng_io.c
index 1459c51..7163e4c 100644
--- a/src/lib/tng_io.c
+++ b/src/lib/tng_io.c
@@ -36,13 +36,19 @@
#include "compression/tng_compress.h"
#include "tng/version.h"
-#ifdef _MSC_VER
-#define fseeko _fseeki64
-#define ftello _ftelli64
+#if defined( _WIN32 ) || defined( _WIN64 )
+ #ifndef fseeko
+ #define fseeko _fseeki64
+ #endif
+ #ifndef ftello
+ #ifdef __MINGW32__
+ #define ftello ftello64
+ #else
+ #define ftello _ftelli64
+ #endif
+ #endif
#endif
-
-
struct tng_bond {
/** One of the atoms of the bond */
int64_t from_atom_id;
contact: Jan Huwald // Impressum