kernel_types.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2014 Oliver Hahm
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
21 #ifndef KERNEL_TYPES_H
22 #define KERNEL_TYPES_H
23 
24 #include <stdint.h>
25 #include <inttypes.h>
26 #include <limits.h>
27 
28 #ifndef NATIVE_INCLUDES
29 # include <stddef.h>
30 # include <sys/types.h>
31 
35 # ifndef SSIZE_MAX
36 # ifdef _POSIX_SSIZE_MAX
37 # define SSIZE_MAX _POSIX_SSIZE_MAX
38 # else
39 # define SSIZE_MAX ((ssize_t)(SIZE_MAX / 2))
40 # endif
41 # endif
42 
43 # ifdef MODULE_MSP430_COMMON
44 typedef signed ssize_t;
45 # endif
46 #endif
47 
48 #ifdef __cplusplus
49 extern "C" {
50 #endif
51 
52 #ifdef __cplusplus
53 }
54 #endif
55 
56 #endif /* KERNEL_TYPES_H */
57 
inttypes.h
Adds include for missing inttype definitions.