xsens_imu
external
xsensVendorLib
xsens_file.h
Go to the documentation of this file.
1
#ifndef XSENS_FILE_H
2
#define XSENS_FILE_H
3
4
#include <stdio.h>
5
#ifndef XSENS_MONOLITHIC
6
#ifndef _PSTDINT_H_INCLUDED
7
# include "
pstdint.h
"
8
#endif
9
#endif
10
11
#ifndef _WIN32
12
# include <sys/types.h>
13
#endif
14
15
#ifdef _WIN32
16
typedef
__int64
XsensFilePos
;
17
#else
18
/* off_t is practically guaranteed not to be 64 bits on non64 bit systems.
19
We'd better explicitly use __off64_t to be sure of it's size.
20
*/
21
typedef
__off64_t
XsensFilePos
;
22
#endif
23
24
// setFilePos defines
25
#ifdef _WIN32
26
# define XSENS_FILEPOS_BEGIN FILE_BEGIN
27
# define XSENS_FILEPOS_CURRENT FILE_CURRENT
28
# define XSENS_FILEPOS_END FILE_END
29
#else
30
# define XSENS_FILEPOS_BEGIN SEEK_SET
31
# define XSENS_FILEPOS_CURRENT SEEK_CUR
32
# define XSENS_FILEPOS_END SEEK_END
33
#endif
34
35
#endif // XSENS_FILE_H
pstdint.h
XsensFilePos
__off64_t XsensFilePos
Definition:
xsens_file.h:21
Generated by
1.8.13