Blender V4.3
BLI_sys_types.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2001-2002 NaN Holding BV. All rights reserved.
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
19#pragma once
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
25#if defined(__linux__) || defined(__GNU__) || defined(__NetBSD__) || defined(__OpenBSD__) || \
26 defined(__FreeBSD_kernel__) || defined(__HAIKU__)
27
28/* Linux-i386, Linux-Alpha, Linux-PPC */
29# include <stdint.h>
30
31/* XXX */
32# ifndef UINT64_MAX
33# define UINT64_MAX 18446744073709551615
34typedef uint8_t u_int8_t;
35typedef uint16_t u_int16_t;
36typedef uint32_t u_int32_t;
37typedef uint64_t u_int64_t;
38# endif
39
40#elif defined(__APPLE__)
41
42# include <inttypes.h>
43
44/* MSVC >= 2010 */
45#elif defined(_MSC_VER)
46# include <stdint.h>
47
48#else
49
50/* FreeBSD, Solaris */
51# include <stdint.h>
52# include <sys/types.h>
53
54#endif /* ifdef platform for types */
55
56#include <stdbool.h>
57#include <stddef.h> /* size_t define */
58
59#ifndef __cplusplus
60/* The <uchar.h> standard header is missing on some systems. */
61# if defined(__APPLE__) || defined(__NetBSD__) || defined(__OpenBSD__)
62typedef unsigned int char32_t;
63# else
64# include <uchar.h>
65# endif
66#endif
67
68typedef unsigned int uint;
69typedef unsigned short ushort;
70typedef unsigned long ulong;
71typedef unsigned char uchar;
72
73#ifdef __cplusplus
74}
75#endif
unsigned char uchar
unsigned long ulong
unsigned short ushort
unsigned int uint
unsigned short uint16_t
Definition stdint.h:79
unsigned int uint32_t
Definition stdint.h:80
unsigned char uint8_t
Definition stdint.h:78
unsigned __int64 uint64_t
Definition stdint.h:90