MRPT  1.9.9
xsfilepos.h
Go to the documentation of this file.
1 /* +------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | https://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2019, Individual contributors, see AUTHORS file |
6  | See: https://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See: https://www.mrpt.org/License |
8  +------------------------------------------------------------------------+ */
9 #ifndef XSFILEPOS_H
10 #define XSFILEPOS_H
11 
12 /*! \addtogroup cinterface C Interface
13  @{
14 */
15 
16 /*! \typedef XsFilePos
17  \brief The type that is used for positioning inside a file
18 */
19 /*! \typedef XsIoHandle
20  \brief The type that is used for low-level identification of an open I/O
21  device
22 */
23 /*! \typedef XsFileHandle
24  \brief The type that is used for low-level identification of an open file
25 */
26 
27 /*! @} */
28 
29 #include <stdio.h>
30 #ifdef _WIN32
31 #ifndef _PSTDINT_H_INCLUDED
32 #include "pstdint.h"
33 #endif
34 typedef __int64 XsFilePos;
35 #ifndef HANDLE
36 #include <windows.h>
37 #endif
38 typedef HANDLE XsIoHandle;
39 #else
40 #include <sys/types.h>
41 /* off_t is practically guaranteed not to be 64 bits on non64 bit systems.
42  We'd better explicitly use __off64_t to be sure of it's size.
43 */
44 #ifdef __APPLE__
45 typedef int64_t XsFilePos;
46 #else
47 typedef __off64_t XsFilePos;
48 #endif
49 typedef int32_t XsIoHandle;
50 #endif
51 typedef FILE XsFileHandle;
52 
53 #endif // file guard
HANDLE XsIoHandle
Definition: xsfilepos.h:38
__int64 XsFilePos
The type that is used for positioning inside a file.
Definition: xsfilepos.h:34
__int64 int64_t
Definition: rptypes.h:52
__int32 int32_t
Definition: rptypes.h:49
FILE XsFileHandle
Definition: xsfilepos.h:51



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 8fe78517f Sun Jul 14 19:43:28 2019 +0200 at lun oct 28 02:10:00 CET 2019