Merge branch release-2016
[gromacs.git] / src / external / tng_io / include / compression / my64bit.h
blobc17a4a918499808b629456708965f4843c231843
1 /* This code is part of the tng compression routines.
3 * Written by Daniel Spangberg
4 * Copyright (c) 2010, 2013, The GROMACS development team.
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the Revised BSD License.
9 */
11 #ifndef MY64BIT_H
12 #define MY64BIT_H
14 #ifdef USE_STD_INTTYPES_H
15 #include <inttypes.h>
16 typedef int64_t my_int64_t;
17 typedef uint64_t my_uint64_t;
18 #define HAVE64BIT
19 #else /* USE_STD_INTTYPES */
20 /* The USE_WINDOWS symbol should be automatically defined in tng_compress.h */
21 #include "../compression/tng_compress.h"
22 #ifdef USE_WINDOWS
23 typedef __int64 my_int64_t;
24 typedef unsigned __int64 my_uint64_t;
25 #define HAVE64BIT
26 #else /* USE_WINDOWS */
27 /* Fall back to assume that we have unsigned long long */
28 typedef unsigned long long my_uint64_t;
29 #define HAVE64BIT
30 #endif /* USE_WINDOWS */
31 #endif /* USE_STD_INTTYPES */
33 #endif