Mon, 27 Dec 2021 17:02:32 +0100
add common.h include to all other header files
src/cx/allocator.h | file | annotate | diff | comparison | revisions | |
src/cx/buffer.h | file | annotate | diff | comparison | revisions | |
src/cx/common.h | file | annotate | diff | comparison | revisions | |
src/cx/linked_list.h | file | annotate | diff | comparison | revisions | |
src/cx/list.h | file | annotate | diff | comparison | revisions | |
src/cx/tree.h | file | annotate | diff | comparison | revisions |
1.1 --- a/src/cx/allocator.h Mon Dec 27 16:51:10 2021 +0100 1.2 +++ b/src/cx/allocator.h Mon Dec 27 17:02:32 2021 +0100 1.3 @@ -33,7 +33,7 @@ 1.4 #ifndef UCX_ALLOCATOR_H 1.5 #define UCX_ALLOCATOR_H 1.6 1.7 -#include <stdlib.h> 1.8 +#include "common.h" 1.9 1.10 #ifdef __cplusplus 1.11 extern "C" {
2.1 --- a/src/cx/buffer.h Mon Dec 27 16:51:10 2021 +0100 2.2 +++ b/src/cx/buffer.h Mon Dec 27 17:02:32 2021 +0100 2.3 @@ -45,9 +45,9 @@ 2.4 */ 2.5 2.6 #ifndef UCX_BUFFER_H 2.7 -#define UCX_BUFFER_H 2.8 +#define UCX_BUFFER_H 2.9 2.10 -#include <sys/types.h> 2.11 +#include "common.h" 2.12 #include <stdio.h> 2.13 2.14 #ifdef __cplusplus
3.1 --- a/src/cx/common.h Mon Dec 27 16:51:10 2021 +0100 3.2 +++ b/src/cx/common.h Mon Dec 27 17:02:32 2021 +0100 3.3 @@ -49,6 +49,8 @@ 3.4 /** Version constant which ensures to increase monotonically. */ 3.5 #define UCX_VERSION (((UCX_VERSION_MAJOR)<<16)|UCX_VERSION_MINOR) 3.6 3.7 +#include <stdlib.h> 3.8 +#include <stddef.h> 3.9 3.10 #ifdef _WIN32 3.11 #if !(defined __ssize_t_defined || defined _SSIZE_T_) 3.12 @@ -65,9 +67,7 @@ 3.13 #endif 3.14 #endif /* __WORDSIZE */ 3.15 #else /* !_WIN32 */ 3.16 - 3.17 #include <sys/types.h> 3.18 - 3.19 #endif /* _WIN32 */ 3.20 3.21 #endif /* UCX_COMMON_H */
4.1 --- a/src/cx/linked_list.h Mon Dec 27 16:51:10 2021 +0100 4.2 +++ b/src/cx/linked_list.h Mon Dec 27 17:02:32 2021 +0100 4.3 @@ -38,7 +38,7 @@ 4.4 #ifndef UCX_LINKED_LIST_H 4.5 #define UCX_LINKED_LIST_H 4.6 4.7 -#include <stddef.h> 4.8 +#include "common.h" 4.9 #include "list.h" 4.10 4.11 #ifdef __cplusplus
5.1 --- a/src/cx/list.h Mon Dec 27 16:51:10 2021 +0100 5.2 +++ b/src/cx/list.h Mon Dec 27 17:02:32 2021 +0100 5.3 @@ -37,7 +37,7 @@ 5.4 #ifndef UCX_LIST_H 5.5 #define UCX_LIST_H 5.6 5.7 -#include <stdlib.h> 5.8 +#include "common.h" 5.9 #include "allocator.h" 5.10 5.11 #ifdef __cplusplus
6.1 --- a/src/cx/tree.h Mon Dec 27 16:51:10 2021 +0100 6.2 +++ b/src/cx/tree.h Mon Dec 27 17:02:32 2021 +0100 6.3 @@ -37,8 +37,7 @@ 6.4 #ifndef UCX_TREE_H 6.5 #define UCX_TREE_H 6.6 6.7 -#include <stddef.h> 6.8 -#include <stdlib.h> 6.9 +#include "common.h" 6.10 #include "allocator.h" 6.11 6.12 #ifdef __cplusplus