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