os_type.h Source File

os_type.h
Go to the documentation of this file.
1
13#ifndef __OS_TYPE_H
14#define __OS_TYPE_H
15
18#pragma warning(push)
19#pragma warning(disable: 4005)
20#if defined(_MSC_VER) && (_MSC_VER < 1600)
21#include <msinttypes/stdint.h>
22#else
23#include <stdint.h>
24#endif
25#pragma warning(pop)
26
27#ifdef _WIN32
28
29#ifndef __attribute__
30#define __attribute__(x)
31#endif
32
33#include <windows.h>
34
35#include <basetsd.h>
36
37#ifndef SWIGPYTHON
38typedef SSIZE_T ssize_t;
39#endif
40
41#else /* _WIN32 */
42
43#include <unistd.h>
44
45#define INVALID_HANDLE_VALUE -1
46
47typedef int HANDLE;
48
49#endif /* _WIN32 */
50
51#include <limits.h>
52
61#ifdef _WIN32
62#ifdef _WIN64
63typedef int64_t frameindex_t;
64#define FRAMEINDEX_MAX _I64_MAX
65#else /* _WIN64 */
66#ifdef _MSC_VER
67typedef int _W64 frameindex_t;
68#define FRAMEINDEX_MAX INT_MAX
69#else /* _MSC_VER */
70typedef int frameindex_t;
71#define FRAMEINDEX_MAX INT_MAX
72#endif /* _MSC_VER */
73#endif /* _WIN64 */
74#elif defined(__APPLE__)
75typedef long long frameindex_t;
76#define FRAMEINDEX_MAX LONG_LONG_MAX
77#else /* __APPLE__ */
78typedef long frameindex_t;
79#define FRAMEINDEX_MAX LONG_MAX
80#endif /* _WIN32 */
81
84/* the declarations have previously been in this file.
85 * Remove that include eventually. */
86#include "os_funcs.h"
87
90#endif /* __OS_TYPE_H */
long frameindex_t
Definition os_type.h:78